Click or drag to resize

LoyaltyCampaignOfferClientSelectProductList Method

Returns a Paged Collection of all the Products.

Paging parameters can be defined in the request.

Syntax
C#
public ResultOfPagedCollectionOfProductStub SelectProductList(
	ManagementGroupRequestOfPageFilter request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfPageFilter

Return Value

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

  var filter = new LoyaltyService.PageFilter();
  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.ResultOfPagedCollectionOfProductStub result = svc.SelectProductList(request);

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