Click or drag to resize

AdministrationClientSelectTransactionsByAccountingPeriod Method

Syntax
C#
public ResultOfPagedCollectionOfAccountingPeriodHoldingTransaction SelectTransactionsByAccountingPeriod(
	ManagementGroupRequestOfAccountingPeriodHoldingTransactionFilter request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfAccountingPeriodHoldingTransactionFilter

Return Value

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

  var accountingPeriodHoldingTransactionFilter = new AdministrationService.AccountingPeriodHoldingTransactionFilter(); //Required
  accountingPeriodHoldingTransactionFilter.Branch_PartnerRSN = new Guid("693347fa-c62e-4175-881a-43862e446eb9");; //Required
  accountingPeriodHoldingTransactionFilter.Accounting_Period = string.Empty; //Optional
  accountingPeriodHoldingTransactionFilter.ReturnAllRecords = true; //Optional
  accountingPeriodHoldingTransactionFilter.PageNumber = 1; //Optional - Defaults to 1
  accountingPeriodHoldingTransactionFilter.PageSize = 100; //Optional - Defaults to 100

  request.Value = accountingPeriodHoldingTransactionFilter;

  AdministrationService.ResultOfPagedCollectionOfAccountingPeriodHoldingTransaction result = svc.SelectTransactionsByAccountingPeriod(request);

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