CorrectBusinessTransactions

Inputs (Array[] of CorrectionBusinessTransaction)

Two minor notes:

  • When creating a CorrectBusinessTransactionRequest you also need to attach CorrectionBusinessTransactionFields.
    It doesn't have any properties and thus not holding any data, but is still needed in the request.
  • The CorrectionBusinessTransaction is not a special transaction type, but simply a wrapper that incapsulates SuperTransaction Ids.
NameTypeDescriptionMandatoryAvailable from version
BrickIdGuid Ids of SuperTransactions to be correctedYes 2,14

Outputs

NameTypeDescriptionAvailable from version
EntitiesArrayEntites containing the BrickId (unique id) of the SuperTransactions

Code examples

C# - Correct SuperTransaction
 public static void CorrectBusinessTransaction()
        {
            var binding = new BasicHttpBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;

            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
            var req = new bfsapi.CorrectBusinessTransactionRequest();
            req.Credentials = new bfsapi.Credentials
            {
                UserName = "username",
                Password = "password"
            };

            req.identify = "identity";
            req.Fields = new CorrectionBusinessTransactionFields();

            req.Entities=new CorrectionBusinessTransaction[]
            {
                new CorrectionBusinessTransaction
                {
                    BrickId = new Guid("e14ee5c1-cc78-4dad-bf0a-14800538a107")
                }, 
            };
            var resp= target.CorrectBusinessTransactions(req);
           

        }