Click or drag to resize

LoyaltyPartnerClientSelectLoyaltyPartnerList Method

Return a Paged Collection of Loyalty Partners, filtered from the submitted values.

Paging parameters can be defined in the request.

Syntax
C#
public ResultOfPagedCollectionOfPartnerProfile SelectLoyaltyPartnerList(
	ManagementGroupRequestOfPartnerProfileCatalogueFilter request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfPartnerProfileCatalogueFilter

Return Value

Type: ResultOfPagedCollectionOfPartnerProfile
Examples
C#
using (var svc = new LoyaltyService.LoyaltyPartnerClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfPartnerProfileCatalogueFilter();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var filter = new LoyaltyService.PartnerProfileCatalogueFilter();
  filter.IncludeOutlets = true;//Optional
  filter.IncludeRegions = true;//Optional
  filter.PageNumber = 1;//Optional - defaults to 1 if not supplied
  filter.PageSize = 100;//Optional - default to 100 if not supplied

  //add filter to request
  request.Value = filter;

  LoyaltyService.ResultOfPagedCollectionOfPartnerProfile result = svc.SelectLoyaltyPartnerList(request);

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