Learn how to use decision table in flow to redeem the points.
Required Editions
| Available in: Lightning Experience in Enterprise, Performance, Developer, and Unlimited Editions that have Loyalty Management enabled. |
- From Setup, in the Quick Find box, enter Flow, and then select Flows.
- Click New Flow.
- Select Autolaunched Flow (No Trigger), and click Next.
- Click +.
- Select Action.
- In the Category, select Decision Table.
-
Select the Redemption Catalog - Transaction Journal Link action, and
complete the following details:
- Label: Get Redemption Quote
- Set Input Values
- Transaction Journal: {!JournalRecord}
- Click Done.
- Click +.
- Select Action.
-
Select the Get Points Balance action and complete these steps:
Field Value Label Get Member Balance Program Corporate Loyalty Program Currency Type Points Member ID {!JournalRecord.MemberId} - Click Done.
- Click +.
-
Select Decision and complete these steps:
-
- Label: Check sufficient balance
- In the Outcome Details, complete the following fields:
- Label: Sufficient Balance
- When to Execute Outcome All Conditions Are Met
- Conditions:
- Resource: {!Get_Member_Balance.PointsBalance}
- Operator: Greater Than or Equal To
- Value: {!Get_Redemption_Quote.singleOutcome.Points__c}
-
- Click Done.
- Click +.
- Select Action.
-
Select the Debit Points action and complete these steps:
Field Value Label Debit Points for Member Program Corporate Loyalty Program Currency Type Points Recipient Member ID {!JournalRecord.MemberId} Number of Points to Debit {!Get_Redemption_Quote.singleOutcome.Points__c} Journal ID {!JournalRecord.Id} Promotion ID Debit Points - Click Done.
- Save your changes.
- Name the flow Debit Points for Member, and save your changes.
-
Activate the flow.
After the flow is executed, the points are redeemed and the corresponding record in the Loyalty Member Currency table is updated, including the points balance and total points redeemed.