Click or drag to resize

AdministrationClientQueryTransactionBatch Method

Returns the Batch Details metadata that enables monitoring the submitted Transaction Batch Progress.

This method is an optional step in the workflow for Transaction File Batch submission.

Remarks
Transaction File Batch submission workflow:
  • Initialise Batch - call Web Service Method: OpenTransactionBatch
  • Submit Transaction File(s) - call Web Service Method: LoadTransactionBatch
  • Monitor submitted Transaction Batch Progress - call Web Service Method: QueryTransactionBatch
  • Stop The Transaction Batch Processing - call Web Service Method: CancelTransactionBatch
  • Analyse the final results of The Transaction Batch Processing - call Web Service Method: ReportTransactionBatch
Syntax
C#
public ResultOfBatch QueryTransactionBatch(
	ManagementGroupRequestOfguid QueryBatch
)

Parameters

QueryBatch
Type: AdministrationServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfBatch
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfguid();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  request.Value = new Guid("08a68688-1ae4-49de-a8d8-a0a7e84cdee9");; //Required - Returned from AdministrationService.OpenTransactionBatch (ResultOfBatch.Key)

  AdministrationService.ResultOfBatch result = svc.QueryTransactionBatch(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed          
    throw new Exception(result.FaultDescription);
  }
}
See Also