---
schema_version: "1"
id: fb20b6f31d3f7dbb16c20b219dfad4ee6a37c39711c32d51934e5193ceefc675
title: Define Input Variables in Benefit Actions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/benefit_actions_input_variables.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.benefit_actions_input_variables.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6fc68bb6790243da4b18364704a0162e9e9c3f21aaf6b96e7874a07bc13abdb1
description: Use input variables in Benefit Actions to influence flow behavior.
products:
  - Loyalty Management
release: "264"
---
# Define Input Variables in Benefit Actions

Use input variables in Benefit Actions to influence flow behavior.

### 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>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d14622e72">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d14622e72 ">To create a benefit action:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d14622e72 ">
              <p>Loyalty Management</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Customize Application</p>
            </td>

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

A Benefit Action comprises a Benefit Action template and a corresponding flow. Loyalty admins can define input variables in the Benefit Actions that are passed to the downstream flow. These input variables make the flows more generic because the behavior changes according to the input variables’ values. For example, you can use a Create Entitlement Flow whose behavior varies based on the input variable value (Standard or Priority) provided by your users.

To define input variables in a Benefit Action, perform these steps.

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

Note The available variables correspond to the input variables present in the flow associated with the Benefit Action.

1. After you create a Benefit Action, the Benefit Action Mapping screen appears.
2. From the Member ID Input Variable picklist, select the flow input variable that maps to the Member Benefit ID.
3. Select a field from the Input Fields picklist, then click **Add**.
4. If necessary, edit the display name for the input field.  This name appears while mapping actions when the benefits are defined.
5. Choose a field type. The Value field’s behavior changes based on your selection.
    
    If the input variable in the flow is of the Boolean, Number, Date, or Date/Time data type, the values can’t be edited. However, if the input variable is Text, the field can be defined as Text, Picklist, or Picklist of Objects.
    
    - If you want the user to enter a text value, choose the Text field type.
    - If you want to provide users with a list of pre-defined options, choose the Picklist field type.
    - If you want to provide users with a picklist of options that is already defined in the picklist of another object, choose the Picklist of Objects field type.
6. If you choose the Text field type, there is no corresponding Value field.
7. If you choose the Picklist field type, define the picklist values in the available textbox . Add each picklist value on a separate line.
8. For the Picklist of Objects field type, the Object picklist shows all the accessible Salesforce objects, and the Picklist Field lists the selected object’s related picklist fields.  Select an object and a related picklist field.
9. Save your changes. The Benefit Action Details screen appears.

On the Map benefits to action screen, your users can enter values for the input variables you defined.