---
schema_version: "1"
id: 7f9b71ebc8c58248653dc61417ebf97ac49420183e4911b89994021f35ff3580
title: Credit Points for Member Accruals (Example)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/promotion_setup_example_two.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.promotion_setup_example_two.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 912e40b784aeea2511bdcebbe00a055ea2acd178a0b28b728ebc825ffe37d73e
description: The program manager of Cloud Kicks Inner Circle has set up a loyalty program process that processes Accrual type transactions in real time. The process must credit points to the member's points balance and update the member's usage of a cumulative promotion if the promotion is associated with the transaction journal. If the member reaches the promotion's target, points must be credited to the member.
products:
  - Loyalty Management
release: "264"
---
# Credit Points for Member Accruals (Example)

The program manager of Cloud Kicks Inner Circle has set up a loyalty program process that processes Accrual type transactions in real time. The process must credit points to the member's points balance and update the member's usage of a cumulative promotion if the promotion is associated with the transaction journal. If the member reaches the promotion's target, points must be credited to the member.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>,&nbsp;<strong>Performance</strong>, <strong>Unlimited</strong>, and&nbsp;<strong>Developer</strong>&nbsp;Editions with Loyalty Management</td></tr></tbody></table>

## Explore and Learn

Watch this video to understand how you can create a process to credit points to members for their activities.

If you aren’t able to watch the video in full screen, open the video on a new tab: [![Watch video](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/resources-global/_corporate/images/play_btn.png) Use Loyalty Management Promotion Setup to Reward Member Purchases](https://salesforce.vidyard.com/watch/zmFvZAKWMmKn8MwV2y6PD5).

## Scenario

Here are the business scenarios of the loyalty program process:

- Members must be credited points that are worth twice the transaction amount for a non-qualifying currency named Reward Points.
- A cumulative promotion is running between February 1 and April 30, 2022 for which the member must purchase 10 products across multiple transactions to get an additional 100 Reward Points.
    - The promotion is named Buy 10, Get 100.
    - The promotion record contains the details of the number of points that must be credited and the promotion period.
- An email must be sent to the member if they achieve the target for the promotion with the current transaction.
    
    The flow to send an email to the member has already been configured by the admin and it is of the type Loyalty Management Flow. The flow is named Send Email to Member for Reaching Buy 10, Get 100 Promotion Target.

## Loyalty Program Process

Here's how the loyalty program process is defined.

 
| Field Name | Value |
| --- | --- |
| Name | Credit Points for Accruals |
| Status | Draft |
| Process Execution Mode | RealTime |
| Loyalty Program | Cloud Kicks Inner Circle |
| Process Type | Transaction Journal |
| Journal Type | Accrual |

![Loyalty Program Process](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/loyalty_management/images/promotion_setup_example_two_process.png)

## Parameter

The process requires one constant parameter that stores a number. The number represents the factor by which the transaction amount must be calculated to determine the points to be credited for a transaction journal. This value is stored as a parameter to ensure that if the factor changes, the rule doesn't need to be deactivated to update the factor.

 
| Field Name | Value |
| --- | --- |
| Name | TransactionAmountFactorForPoints |
| Loyalty Program Process | Credit Points for Accruals |
| Type | Constant |
| Data Type | Number |
| Value | 2 |

![Parameter](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/loyalty_management/images/promotion_setup_example_two_parameter.png)

## Rule to Credit Points

The rule is only used to credit points to the member for every Accrual type transaction journal.

 
| Field Name | Value |
| --- | --- |
| Name | Credit Points |
| Loyalty Program Process | Credit Points for Accruals |
| Start Date | Jan 1, 2022 |

## Steps in the Credit Points Rule

Here's the only step that's added to the Credit Points rule.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e373">Step Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e376">Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e379">Input Field Value</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e382">Output Field Value</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Step Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e373 ">Credit Points action</td>

            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e376 ">Credit Points to Member</td>

            <td data-label="Input Field Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e379 ">
              <ul>
                <li>Currency Name: Reward Points</li>

                <li>Points to Credit: {!TransactionJournal.TransactionAmount} *
                  {!TransactionPercentageForPoints}</li>

              </ul>
            </td>

            <td data-label="Output Field Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e382 ">—</td>

          </tr>
        </tbody>
      </table>

![Credit Points action](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/loyalty_management/images/promotion_setup_example_two_rule_one.png)

## Rule to Credit Points on Reaching Promotion Target

The rule is used to verify whether the transaction is associated with a cumulative promotion and update the member's usage toward attaining the promotion. The rule also credits points to the member if the member reaches the promotion's target. An email is sent out to inform the member that points have been credited for achieving the promotion target. After points are credited to the member for the promotion, the member's promotion usage is reset to zero.

 
| Field Name | Value |
| --- | --- |
| Name | Update Member's Promotion Usage and Credit Points on Reaching Promotion Target |
| Loyalty Program Process | Credit Points for Accruals |
| Promotion | Buy 10, Get 100 |
| Previous Process Rule | Credit Points |

## Steps in the Increment Promotion Usage Rule

Here are the steps that were added to the Increment Promotion Usage rule.

Step 1: Check Whether Transaction is Associated with Buy 10, Get 100 Promotion

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e521">Step Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e524">Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e527">Condition</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e530">Filter Criteria</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Step Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e521 ">Condition</td>

            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e524 ">Is the Transaction Journal Associated with Buy 10, Get 100?</td>

            <td data-label="Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e527 ">All conditions are met (AND)</td>

            <td data-label="Filter Criteria" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e530 ">
              <ul>
                <li>Resource: TransactionJournal &gt; Promotion &gt; Name</li>

                <li>Operator: Equals</li>

                <li>Type: Resource</li>

                <li>Value: Promotion &gt; Name</li>

              </ul>
            </td>

          </tr>
        </tbody>
      </table>

Step 1.1: Increase Member Usage for the Promotion

    
| Step Type | Name | Parent Step | Input Field Value | Output Field Value |
| --- | --- | --- | --- | --- |
| Increase Usage for Cumulative Promotion action | Increase Member's Usage Towards Buy 10, Get 100 | Is the Transaction Journal Associated with Buy 10, Get 100? | Usage Increment for Cumulative Promotion: Transaction Journal > Quantity | — |

Step 1.2: Check Whether the Member Has Achieved the Promotion Target

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e656">Step Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e659">Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e662">Parent Step</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e665">Condition</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e668">Filter Criteria</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Step Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e656 ">Condition</td>

            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e659 ">Has Member Reached the Promotion Target?</td>

            <td data-label="Parent Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e662 ">Is the Transaction Journal Associated with Buy 10, Get 100?</td>

            <td data-label="Condition" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e665 ">All conditions are met (AND)</td>

            <td data-label="Filter Criteria" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e668 ">
              <ul>
                <li>Resource: Promotion &gt; CumulativeUsageTarget</li>

                <li>Operator: Less than or equal to</li>

                <li>Type: Resource</li>

                <li>Value: LoyaltyProgramMbrPromotion &gt; CumulativeUsageTarget</li>

              </ul>
            </td>

          </tr>
        </tbody>
      </table>

Step 1.2.1: Credit Points for Reaching Promotion Target

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
          <col style="width:20%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e733">Step Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e736">Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e739">Parent Step</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e742">Input Field Value</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17000e745">Output Field Value</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Step Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e733 ">Credit Points action</td>

            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e736 ">Credit Points for Achieving Promotion Target</td>

            <td data-label="Parent Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e739 ">Has Member Reached the Promotion Target?</td>

            <td data-label="Input Field Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e742 ">
              <ul>
                <li>Currency Name: Reward Points</li>

                <li>Points to Credit: Promotion &gt; TotalRewardPoints</li>

              </ul>
            </td>

            <td data-label="Output Field Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d17000e745 ">—</td>

          </tr>
        </tbody>
      </table>

Step 1.2.2: Send Email to Member on Reaching Promotion Target

    
| Step Type | Name | Parent Step | Input Field Value | Output Field Value |
| --- | --- | --- | --- | --- |
| Run a Flow action | Send Email to Member on Reaching Promotion Target | Has Member Reached the Promotion Target? | — | — |

Step 1.2.3: Reset Member's Promotion Usage to Zero

    
| Step Type | Name | Parent Step | Input Field Value | Output Field Value |
| --- | --- | --- | --- | --- |
| Update Usage for Cumulative Promotion action | Reset Member's Buy 10, Get 100 Promotion Usage to Zero | Has Member Reached the Promotion Target? | New Usage for Cumulative Promotion: 0 | — |

![Complete rule.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/loyalty_management/images/promotion_setup_example_two_rule_two.png)