After setting up the flow to credit points to loyalty program members, create a batch job to process the flow. This batch job only processes transaction journal records that are in pending status.
| Available in: Lightning Experience in Enterprise, Performance, Developer, and Unlimited Editions that have Loyalty Management enabled. |
- From Setup, in the Quick Find box, enter Batch, and then select Batch Management.
- Click New.
-
Provide the details listed in this table:
Field Description Name and API Name Process Transaction Journals Process Type Flow Group Loyalty Execution Process Credit_Points_to_Members Batch Size The size of this individual batch, for example, 200. Retry Count The retry count for this individual batch, for example, 2. Retry Interval The number of retry intervals for this individual batch, for example, 1,000. - Click Next.
-
Provide the details listed in this table:
Field Description Flow Input Variable RecordID Object Transaction Journal Conditions - Select Records When: All conditions are met (AND)
- Field: Status
- Operator: Equals
- Type: Value
- Value: Pending
- Save your changes.
- Activate the batch job.
Create another flow to schedule this batch job to run.