---
schema_version: "1"
id: e0b6f60594a4ac67512721b21c1a9d5455ff5d6d3fe2a4c6eec004474e8b6216
title: Rules for Industries CPQ
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_rules_overview.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_rules_overview.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e6df6d72cf46f61c792abe977498080842fe076ba8d07e205727ad4f6fd27b60
description: Salesforce provides an Industries Configure, Price, Quote (CPQ) rules framework. Rules are associations of entity filters and actions. Entity filters evaluate objects for specific conditions. Rules execute actions on qualified objects.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Rules for Industries CPQ

Salesforce provides an Industries Configure, Price, Quote (CPQ) rules framework. Rules are associations of entity filters and actions. Entity filters evaluate objects for specific conditions. Rules execute actions on qualified objects.

A defined rule applies to an object, such as an Opportunity, Order, or a Quote. Rules are run based on the implementation that the interface calls. Rules can operate on any object, but they are usually used on CPQ objects. The Vlocity open interface implementations invoke the rules that you specify in flow steps.

A rule often includes an entity filter, which filters the objects on which to run. Each rule includes a rule action, which defines what the rule does. For every rule, the rule action is different. Rules can use entity filters to define what the rule is, how it’s used, and what it does.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)

Note The Advanced Rule executes two sequential actions. The product added by the first action serves as the base product for the second.

Some examples of rules include:

- Some products are not available to customers in Alaska and Hawaii.
- Only high-value customers are eligible for a specific promotion.
- If a customer orders high-speed Internet service, automatically add the hardware necessary to support that service.
- If a customer orders 10 or more of a specific product, reduce the price for each product.

Rule processing occurs in the following sequence, using pricing as an example:

1. The interface calls an implementation.
2. The implementation specifies that a rule is applied to the order.
3. (Optional) The entity filter qualifies line items.
4. The rule action is applied to the qualified line items. For auto add rule action to work, the base product on which the action is applied should already be present in the cart.
5. The applied rule action changes the order.
6. More rules may run in a defined sequence to result in appropriate order pricing.

**Rule Processing Diagram**

![A Trigger Event invokes a Pricing Implementation class, which invokes a Flow containing Advanced Rules. Advanced Rules have Entity Filters and Actions. Actions can invoke Calculation Procedures, Calculation Matrices, and other Entity Filters.](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/ruleprocessingdiagram.png)

Rules execute with system, or org, privileges, and not those of the user triggering them. For example, a user who has no rights to see the customer class level can run rules that are based on the customer class level. If a rule must exclude certain products or pricing based on a user profile, the profile check must be a part of the rule itself.

- **[Rule Levels and Types](https://help.salesforce.com/s/articleView?id=ind.comms_rule_levels_and_types.htm&release=264.0.0&type=5)**  
    There are two Rules levels: Header-level Rules, and Item-level Rules. There are four Rule types: Availability, Eligibility, Compatibility, and Pricing.
- **[Rule Objects](https://help.salesforce.com/s/articleView?id=ind.comms_rule_objects.htm&release=264.0.0&type=5)**  
    A Rule object is a header object with three related objects: Rule Filter, Rule Action, and Rule Variable.
- **[Entity Filters](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.
- **[Create a Rule Action Entity Filter](https://help.salesforce.com/s/articleView?id=ind.comms_create_a_rule_action_entity_filter.htm&release=264.0.0&type=5)**  
    Entity filters filter the orders on which to run. An entity filter consists of one or more conditions that are based on fields or attributes. Entity filters apply those conditions to objects.