Methods in the LoyaltyResources class support processing up to 200 records per invocation. This class predates the Invocable.Action Apex wrapper, which supports up to 2000 records per invocation and is the recommended approach for invoking loyalty actions.
Use this method to retrieve promotions that are eligible for a member based on the member’s market segment.
Signature
public static List<LoyaltyManagement.CdpBasedLoyaltyPromotionOutput> getLoyaltyPromotionBasedOnSalesforceCDP(List<LoyaltyManagement.CdpBasedLoyaltyPromotionInput> loyaltyPromotionInputList)
Use this method to retrieve active promotions that are eligible for a transaction journal. The action can process accrual or redemption transactions.
Signature
public static List<LoyaltyManagement.LoyaltyPromotionOutput> getLoyaltyPromotions(List<LoyaltyManagement.LoyaltyPromotionInput> loyaltyPromotionInputList)
Use this method to retrieve the loyalty points balance for a loyalty program member.
Signature
public static List<LoyaltyManagement.MemberPointBalanceOutput> getPointsBalance(List<LoyaltyManagement.MemberPointBalanceInput> memberPointBalanceList)
Use this method to transfer points from an individual member or a corporate member to the member’s associated group.
Signature
public static List<LoyaltyManagement.LoyaltyActionResult> transferMemberPointsToGroups(List<LoyaltyManagement.TransferMemberPointsToGroupsInput> transferMemberPointsToGroupsList)
Use this method to update the progress made by a loyalty program member towards attaining a Cumulative type promotion.
Signature
public static List<LoyaltyManagement.UpdateCumulativeUsageCompletedOutput> updateProgressForCumulativePromotionUsage(List<LoyaltyManagement.UpdateCumulativeUsageCompletedInput> updateCumulativeUsageCompletedInputList)