Click or drag to resize

AdministrationClientSelectPartnerOutlets Method

Return a collection of Partner Outlets, filtered from the submitted values.

Pagination parameters are available to format the response.

Syntax
C#
public ResultOfPagedCollectionOfPartnerOutletStub SelectPartnerOutlets(
	ManagementGroupRequestOfPartnerOutletSearchFilter request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfPartnerOutletSearchFilter

Return Value

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

  var partnerOutletSearchFilter = new AdministrationService.PartnerOutletSearchFilter();
  partnerOutletSearchFilter.Active = null; //Optional
  partnerOutletSearchFilter.Filter = string.Empty; //Optional
  partnerOutletSearchFilter.Partner_RSN = Guid.Empty; //Optional
  partnerOutletSearchFilter.Visible = null; //Optional
  partnerOutletSearchFilter.PageNumber = 1; //Optional
  partnerOutletSearchFilter.PageSize = 10; //Optional 

  request.Value = partnerOutletSearchFilter;

  AdministrationService.ResultOfPagedCollectionOfPartnerOutletStub result = svc.SelectPartnerOutlets(request);

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