Click or drag to resize

LoyaltyPartnerClientSelectLoyaltyPartnerOutletList Method

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

Paging parameters can be defined in the request.

Syntax
C#
public ResultOfPagedCollectionOfPartnerOutletProfile SelectLoyaltyPartnerOutletList(
	ManagementGroupRequestOfPartnerOutletSearchFilter request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfPartnerOutletSearchFilter

Return Value

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

  var filter = new LoyaltyService.PartnerOutletSearchFilter();
  filter.Active = true;//Optional
  filter.Visible = true;//Optional
  filter.Partner_RSN = new Guid("f6954866-48c9-4d8a-a337-cb39e0e78d21");;//Optional
  filter.Filter = "";//Optional - text search of company name and partner id
  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.ResultOfPagedCollectionOfPartnerOutletProfile result = svc.SelectLoyaltyPartnerOutletList(request);

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