Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

CdpBasedLoyaltyPromotionInputBuilder Class

Contains methods to build an instance of the LoyaltyManagement.CdpBasedLoyaltyPromotionInput class.

Namespace

LoyaltyManagement

CdpBasedLoyaltyPromotionInputBuilder Methods

The following are methods for CdpBasedLoyaltyPromotionInputBuilder.

build()

Returns an instance of the LoyaltyManagement.CdpBasedLoyaltyPromotionInput object.

Signature

public LoyaltyManagement.CdpBasedLoyaltyPromotionInput build()

setMemberId(memberId)

Represents the ID of a loyalty program member for whom promotions must be filtered. This is a required field. Ensure that the member is part of a Data Cloud market segment.

Signature

public LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder setMemberId(String memberId)

Parameters

memberId
Type: String

setPromotions(promotions)

Represents the promotion records to filter the promotions that are applicable to the member's market segment.

Signature

public LoyaltyManagement.CdpBasedLoyaltyPromotionInputBuilder setPromotions(List<SObject> promotions)

Parameters

promotions
Type: List<SObject>