---
schema_version: "1"
id: 1808162982a9db24339a891329e9533063bbd6e9cfd8c340957cf9600ea5a29f
title: Add Conditions and Actions to a Rule
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/promotion_setup_rule_design.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.promotion_setup_rule_design.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bfa6a853c6928add27a5aa7e45b7fd63c423a8deef4a1708a953b058f03af003
description: Add conditions and actions in a rule to decide how you want a transaction journal to be processed by the rule. Use conditions to decide the transaction journals that you want the rule to process. Use actions to get information about the member, update member records, and run flows and standard type decision tables that are created by admins.
products:
  - Loyalty Management
release: "264"
---
# Add Conditions and Actions to a Rule

Add conditions and actions in a rule to decide how you want a transaction journal to be processed by the rule. Use conditions to decide the transaction journals that you want the rule to process. Use actions to get information about the member, update member records, and run flows and standard type decision tables that are created by admins.

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

To add conditions and actions for a rule, access the Rule Builder by clicking the name of the rule on the associated Loyalty Program Process record.

Each condition and action that you add in a rule is called a step. After you add a condition or an action, click **Done** (1) on its window to save the condition or action. After you save all the new or updated steps, on the Rules Builder, click **Save** (2) to save all your changes. To revert your rule to the previously saved version and discard all the recent changes, on the Rules Builder, click **Discard** (3).

![Rules Builder](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_rules_builder_one.png)

## Add Conditions

You can add a condition as a parent step (2), and you can add multiple conditions, condition groups, and actions as child steps (1) of the condition. When a transaction journal meets the filter criteria of a condition, the child steps process the transaction journal.

A condition group can have conditions, condition groups, and actions as child steps. In a condition group, you can add one child action for each condition. The default path of a condition group can have only one child action.

![Rules Builder of Promotion Setup.](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_rules_builder_two.png)

## Add Actions

You can't add child steps for an action. You can associate an action as a child to a condition or condition group. You can also add an action as a parent step.

## Select Resources in Conditions and Actions

When adding a condition or an action, select a resource to provide the value in a condition or an action. Resources consist of:

- Parameters that are already defined for the related loyalty program process.
- Aliases that are defined for loyalty program processes.
- Fields of the Transaction Journal object and its related objects.

When selecting a resource, search for the resource by entering at least the first three characters of the name of the resource. You can find resources like related object fields in a cascading list. You can select a resource by searching up to three levels. If a field is four or more levels away from the parent object, manually go to the field and select it.

## Sequence of Processing Transactions

The steps of a rule process a transaction in the sequence in which they’re saved. If a rule has two actions, the first action in the sequence processes the transaction first. After the first action completes processing the transaction journal, the second action starts to process the transaction journal.

When a rule has multiple parent steps and each parent step has child steps, the first parent step and its child steps process the transaction journal. The child steps also process the transaction journal in the sequence in which they’re saved. After all the child steps of a parent step have competed processing the transaction journal, the next parent step in the sequence starts to process the transaction journal.

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

Tip When you add steps and use the output of one step as the input of another, keep in mind the sequence in which transactions are processed in the rule.

After you add all required steps to your rule, activate the rule. Only active rules process transaction journals. If the rule is associated with a promotion, then it’s automatically activated on the start date of the promotion. To change an active rule, ensure that you deactivate it first.