---
schema_version: "1"
id: e323548eca8b5ccf96baa2945bad75e765687d56afbb2425d2b51bc9cb62df51
title: Overview of the Enroll in Promotion Process Template
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/bapi_overview_enroll_promotion_process_template.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.bapi_overview_enroll_promotion_process_template.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9d0754b20c0d5b73d9ec8e85da66ca706a25cd4f9f9859e735558dc4d28ca2b2
description: Learn about the Enroll in Promotion process template and its components. Also, understand how you can use the template to create loyalty program processes based on your requirements and execute the processes.
products:
  - Loyalty Management
release: "264"
---
# Overview of the Enroll in Promotion Process Template

Learn about the Enroll in Promotion process template and its components. Also, understand how you can use the template to create loyalty program processes based on your requirements and execute the processes.

### 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 in&nbsp;<strong>Enterprise</strong>,&nbsp;<strong>Performance</strong>, <strong>Unlimited</strong>, and&nbsp;<strong>Developer</strong>&nbsp;Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Orgs that have the B2C - Loyalty, B2C - Loyalty Plus, B2B - Loyalty, Loyalty Management - Growth, or Loyalty Management - Advanced license enabled</td></tr></tbody></table>

## What Does the Template Contain?

The template contains a rule and set of parameters. The Enroll in Promotion rule has only one rule step to enroll loyalty program members in the promotion based on the input parameters. The parameters stores parameter values that the rule uses to enroll in 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="d17354e82">Rule Step Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17354e85">What Does the Rule Step Do?</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17354e88">Parameters used in the Step</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d17354e91">What Does the Parameter Do?</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Rule Step Name" class="slds-cell-wrap" rowspan="4" style="vertical-align:top;" headers="d17354e82 ">Enroll in Promotion</td>

            <td data-label="What Does the Rule Step Do?" class="slds-cell-wrap" rowspan="4" style="vertical-align:top;" headers="d17354e85 ">Enrolls loyalty program members in a promotion based on the input
              parameters.</td>

            <td data-label="Parameters used in the Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e88 ">MemberId or MembershipNumber</td>

            <td data-label="What Does the Parameter Do?" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e91 ">The input parameter stores the identifier of the loyalty program member.</td>

          </tr>
          <tr class="">
            <td data-label="Parameters used in the Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e88 ">PromotionId or PromotionName</td>

            <td data-label="What Does the Parameter Do?" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e91 ">The input parameter stores the identifier of the loyalty promotion into which the
              member is enrolled.</td>

          </tr>
          <tr class="">
            <td data-label="Parameters used in the Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e88 ">IsEnrollmentActive</td>

            <td data-label="What Does the Parameter Do?" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e91 ">The input parameter stores the enrollment status of the loyalty program member in the
              promotion is active or inactive.</td>

          </tr>
          <tr class="">
            <td data-label="Parameters used in the Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e88 ">RecordId</td>

            <td data-label="What Does the Parameter Do?" class="slds-cell-wrap" style="vertical-align:top;" headers="d17354e91 ">Stores the identifier of the Member record.</td>

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

## How Can You Execute the Processes Created Using the Enroll in Promotion Process Template?

Loyalty Management provides a Business API to execute processes created by cloning loyalty program process templates. You can integrate the external system and Loyalty Management with the [Enroll in Promotion API](https://developer.salesforce.com/docs/atlas.en-us.loyalty.meta/loyalty/connect_resources_enroll_in_promotion.htm) by executing it as per the input parameters.

In the API, you must specify these values to execute the API for your cloned process:

- In the API endpoint, specify the API name of your cloned process.
- In the API request, specify the values for the parameters that are used in the Enroll in Promotion rule.
    
    You must specify the MemberId or MembershipNumber and PromotionId or PromotionName in the request.

When you execute the API, it runs the loyalty program process and the process enrolls loyalty members in promotions using the value provided in the API request.

## Examples of How You Can Use the Template

You can clone and extend the template based on your requirements. Here’s a way to use the template:

 
| Use Case | How to Achieve the Use Case? |
| --- | --- |
| Enroll loyalty members in multiple promotions and track channel-wise enrollments. | Specify MemberId or MembershipNumber and PromotionId or PromotionName in the API request. If you have different channels to enroll (web, POS, mobile app) and track enrollments by channel, then create multiple clones of the Enroll in Promotion process template and track the data flow through each of the channels separately. |