Use Decision Table in Flow to Redeem Points

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.
  1. From Setup, in the Quick Find box, enter Flow, and then select Flows.
  2. Click New Flow.
  3. Select Autolaunched Flow (No Trigger), and click Next.
  4. Click +.
  5. Select Action.
  6. In the Category, select Decision Table.
  7. Select the Redemption Catalog - Transaction Journal Link action, and complete the following details:
    • Label: Get Redemption Quote
    • Set Input Values
      • Transaction Journal: {!JournalRecord}
  8. Click Done.
  9. Click +.
  10. Select Action.
  11. 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}
  12. Click Done.
  13. Click +.
  14. 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}
  15. Click Done.
  16. Click +.
  17. Select Action.
  18. 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
  19. Click Done.
  20. Save your changes.
  21. Name the flow Debit Points for Member, and save your changes.
  22. 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.