Click or drag to resize

AdministrationClientSelectAccountingPeriodByBranch Method

Syntax
C#
public ResultOfPagedCollectionOfstring SelectAccountingPeriodByBranch(
	ManagementGroupRequestOfAccountingPeriodFilter request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfAccountingPeriodFilter

Return Value

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

  var accountingPeriodFilter = new AdministrationService.AccountingPeriodFilter();
  accountingPeriodFilter.Branch_PartnerRSN = new Guid("3b0f303d-78f8-492a-b41d-a4dc8f59ec5e");; //Required
  accountingPeriodFilter.PageNumber = 1; //Optional
  accountingPeriodFilter.PageSize = 20; //Optional
  accountingPeriodFilter.ReturnAllRecords = true; //Optional

  request.Value = accountingPeriodFilter;
  AdministrationService.ResultOfPagedCollectionOfstring result = svc.SelectAccountingPeriodByBranch(request);

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