---
schema_version: "1"
id: e2d432b63a10717342388bd1665577ff2cfcdf7a4c7efc98a86b0bc59c582504
title: Rule Objects
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_rule_objects.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_rule_objects.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 73176360841577f8fb10ada44f01de0d091fc81143e70e66df0782b138fc9dfe
description: "A Rule object is a header object with three related objects: Rule Filter, Rule Action, and Rule Variable."
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Rule Objects

A Rule object is a header object with three related objects: Rule Filter, Rule Action, and Rule Variable.

Rule object fields include:

- **Rule Name** specifies the Rule name.
- **Is Active** indicates if the Rule is currently in use.
- **Object Name** is the name of the object on which the Rule runs.
- **Type** specifies the rule type: Configuration, Pricing, Eligibility, or Availability.
- **Description** is a description of what the Rule does.

**Rule Object Detail**

![An example rule object for an iPhone case.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/resources-product/images/rule_objects_4.png)

The Rule Filter object encompasses the Entity Filter that a Rule uses. Rule Filter object fields include:

- **Rule Filter Name** specifies the name of the Rule Filter. Salesforce automatically names the Rule Filter.
- **Entity Filter** is a lookup to the Entity Filter that the Rule uses to qualify the objects. For more information, see [Entity Filters Overview](https://help.salesforce.com/s/articleView?id=ind.comms_entity_filters_overview.htm&release=264.0.0&type=5 "Each rule may have an entity filter, which filters out the orders on which to run, and a rule action, which defines what the rule does. Therefore, entity filters are also called rule action filters or rule filters. Rules use entity filters to determine which items in an order are subject to the rule action. Rules can contain one filter or many filters, depending on the business logic that the rule implements. Filters are reusable. For example, as part of a promotion, you might create a filter to identify premises where the service activation date is 45 days or less. After a filter is created, it's available for use in any rule that requires it.").
- **Rule** is a lookup to the associated Rule object.

**Rule Filter Object**

![A Rule Filters list with one item.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/resources-product/images/rule_objects_5.png)

The Rule Action object defines the actions associated with the Rule. Rule Action object fields include:

- `Rule` is a lookup to the associated Rule object.
- `Entity Filter` is a lookup to the Entity Filter the Rule uses. The Entity Filter serves different purposes based on the Rule type. For more information, see
- `Calculation Procedure` is a lookup to the Calculation Procedure object associated with the Rule Action. The Pricing Rule type uses the Calculation Procedure. For more information about Calculation Procedures, see
- `Offering Procedure` is a lookup to the Offering Procedure object associated with the Rule Action. The Availability and Eligibility Rule types use the Offering Procedure.
- `Product Relationship` is a lookup to the Product Relationship object associated with the Rule Action. The Compatibility Rule type uses the Product Relationship. For more information about Product Relationships, see [Product Relationships Overview](https://help.salesforce.com/s/articleView?id=ind.comms_product_relationships_overview.htm&release=264.0.0&type=5 "Products can be related to one another. For example, a product may require, exclude, or recommend another product. You can define relationships between products using Product Relationship objects. Product Relationship objects are then used in compatibility rules to ensure that the correct combination of products is ordered. For example, if a customer orders Product A, the interface may recommend Product B.").

**Figure: Rule Action Object**

![A Rule Actions list with one item.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/resources-product/images/rule_objects_6.png)

The Rule Variable object defines the variables that are used in the Entity Filters. Rule Variable object fields include:

- **Variable name** specifies the name of the variable, which is used to reference the variable in the Entity Filter.
- **Rule** is a lookup to the associated Rule object.
- **Entity Filter** is a lookup to the Entity Filter that the rule uses to qualify the objects that populate the variable.
- **Type** specifies the variable type.
- **Field Name to Assign** specifies the field used to populate the variable.
- **Object Path** is a comma-delimited value that describes the path to the list of objects to use when populating the variable.

**Rule Variable Object**

![A Rule Variables list with one item.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/resources-product/images/rule_objects_7.png)

- **[Rule Actions](https://help.salesforce.com/s/articleView?id=ind.comms_rule_actions.htm&release=264.0.0&type=5)**  
    Rule actions define the changes that a rule makes on qualified objects. A rule action can be an offering procedure, a product relationship, a calculation procedure, or another procedure, such as a call to Apex code. Different rule types use different rule actions.
- **[Rule Variables](https://help.salesforce.com/s/articleView?id=ind.comms_rule_variables.htm&release=264.0.0&type=5)**  
    Rule Variables can hold information passed to them by Entity Filters. You define a Rule Variable in a Rule and refer to it from the associated Entity Filter. You must create a Rule before you can create a Rule Variable.