Click or drag to resize

LoyaltyCampaignOfferClientSelectCampaignOffer Method

Select the Campaign Offer details from the submitted Campaign OFfer RSN.

The Campaign Offer RSN can be fetched from the Web Service Method: SelectCampaignOfferList

Syntax
C#
public ResultOfCampaignOffer SelectCampaignOffer(
	ManagementGroupRequestOfguid request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfguid

Return Value

Type: ResultOfCampaignOffer
Examples
C#
using (var svc = new LoyaltyService.LoyaltyCampaignOfferClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfguid();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin
  request.Value = new Guid("2b234e9a-6206-4324-8187-42ca2f63f72e");;//Required - RSN of campaign offer

  LoyaltyService.ResultOfCampaignOffer result = svc.SelectCampaignOffer(request);

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