You are here:
Reward Members for Loyalty Program Enrollment (Example)
Reward new members with an enrollment bonus.
Required Editions
| Available in: Lightning Experience in Enterprise, Performance, Developer, and Unlimited Editions that have Loyalty Management enabled. |
Create a Flow to Award Points to Members
New members of the Corporate Loyalty Program are awarded with 200 points as a part of loyalty program enrollment.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- Click New Flow.
- Select Record-Triggered Flow, and click Next.
- On the Start element, click Choose Object.
-
Select Loyalty Program Member, and provide these details:
- Condition Requirements: All Conditions Are Met
- Field: MemberStatus
- Operator: Equals
- Value: Active
- Condition Requirements: All Conditions Are Met
-
Click Done.
To check if the member belongs to the Corporate Loyalty Program, perform these steps:
- Click +.
-
Select Decision and provide these details:
- Label: Check Loyalty Program Name
- In the New Outcome tab, complete the following fields:
- Label: Corporate Loyalty Program
- When to Execute Outcome: All Conditions Are Met (AND)
- Resource: {!$Record.Program.Name}
- Operator: Equals
- Value: Corporate Loyalty Program
-
Click Done.
To get Accrual Journal Type and Enrollment Bonus Journal Subtype records, perform these steps:
- Click +.
-
Select Get Records and provide these details:
- Label: Get Accrual Journal Type
- Object: Journal Type
- Condition Requirements: All Conditions Are Met
- Field: Name
- Operator: Equals
- Value: Accrual
- How Many Records to Store: Only the first record
- Click Done.
- Click +.
-
Select Get Records and provide these details:
- Label: Get Enrollment Bonus SubType
- Object: Journal SubType
- Condition Requirements: All Conditions Are Met
- Field: Name
- Operator: Equals
- Value: Enrollment Bonus
- How Many Records to Store: Only the first record
-
Click Done.
To create transaction journal records, perform these steps:
- Click +.
-
Select Create Records and provide these details:
- Label: Create Journal For Enrollment
- How Many Records to Create: One
- How to Set the Record Fields: Use separate resources and literal values
- In the Create a Record of This Object, select object Transaction Journal
- In the Set Field Values for the Transaction Journal, specify
these fields and values.
- ActivityDate:{!$Record.EnrollmentDate}
- JournalDate: {!$Flow.CurrentDateTime}
- MemberId: {!$Record.Id}
- LoyaltyProgramId: {!$Record.Program.Id}
- UsageType: Loyalty
- JournalTypeId: {!Get_Accrual_Journal_Type.Id}
- JournalSubTypeId: {!Get_Enrolment_Bonus_SubType.Id}
-
Click Done.
To credit points for the transaction journal records, perform these steps:
- Click +.
- Select Action.
- In the Category section, select Loyalty.
-
Search and select the Credit Points action and complete these
fields:
Field Value Label Credit Enrollment Bonus Points Program Corporate Loyalty Program Currency Type Points Recipient Member ID {!$Record.Id} Number of Points to Credit 200 Journal ID {!Create_Journal_For_Enrolment} Promotion ID 2X Double Points Promotion - Click Done.
- Save the changes.
- Name the flow Member Enrolment Bonus, and save the changes.
- Activate the flow.
Did this article solve your issue?
Let us know so we can improve!
