---
schema_version: "1"
id: dfe36261b811f236acbe65b7d60adeb0b797a1b0f3b21724113e5dc0c4ef28c2
title: Context Rules and Advanced Rules Frameworks
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_context_rules_and_advanced_rules_frameworks.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_context_rules_and_advanced_rules_frameworks.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: aa4e761cd3931c58d7e04460dac385fbabd4b6a7a87cd2450238df3cc3270542
description: "Industries CPQ has two rules frameworks that work in tandem: context rules and advanced rules."
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Context Rules and Advanced Rules Frameworks

Industries CPQ has two rules frameworks that work in tandem: context rules and advanced rules.

![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 In Classic Versioning APIs, advanced rules evaluate product bundles even if they contain inactive versions. Conversely, Standard Cart Versioning APIs ignore inactive versions, meaning the rule will not apply even if the overall criteria are met.

- Use the [context rules framework](https://help.salesforce.com/s/articleView?id=ind.comms_context_rules_framework.htm&release=264.0.0&type=5 "Use the context rules framework to build rules that change what products, promotions, and prices appear for customers. You can also apply penalties for promotions or contracts that are canceled.You can also create rules to ensure pricing adjustments are allowed only in certain conditions. Context rules work together with advanced rules framework to ensure all orders are configured and priced correctly.") to determine what products, promotions, and prices appear in the Industries Cart. You can specify when to apply a penalty for cancellations and what the penalty will be.
- Use the [advanced rules framework](https://help.salesforce.com/s/articleView?id=ind.comms_advanced_rules_framework.htm&release=264.0.0&type=5 "Advanced Rules Framework allows you to design sophisticated natural language criteria along with customizable interfaces to ensure the right products are available to eligible customers at the right price in the right configuration. Advanced Rules determine which products and under what circumstances they apply using Entity Filters, and they are built using Rule Builder. You can use Advanced Rules to create rules that depend on context, product attributes, and multiple criteria.") to design product compatibility rules based on conditions in order line items and related objects. You can also create advanced pricing, availability, and eligibility rules.

You can use rules to change standard product and pricing behaviors in Industries Cart. Rules are essential to creating the perfect order. You control all the products and services you offer to your customers, and offer them at the right prices.

## After You Edit and Before You Test Rules

After you edit a context or advanced rule, and before you test it in Industries Cart, you must refresh the Platform Cache to activate the rule.

See [Refresh Platform Cache (Full)](https://help.salesforce.com/s/articleView?id=ind.comms_refresh_platform_cache_full.htm&language=en_US&type=5) and [Refresh Platform Cache (Incremental)](https://help.salesforce.com/s/articleView?id=ind.comms_refresh_platform_cache_incremental.htm&language=en_US&type=5)

- **[Context Rules or Advanced Rules: What Type to Use?](https://help.salesforce.com/s/articleView?id=ind.comms_context_rules_or_advanced_rules__what_type_to_use_.htm&release=264.0.0&type=5)**  
    Because context rules and the advanced rules frameworks work together, you must determine what type of rule to use to accomplish your business objective.
- **[Context Rules Framework](https://help.salesforce.com/s/articleView?id=ind.comms_context_rules_framework.htm&release=264.0.0&type=5)**  
    Use the context rules framework to build rules that change what products, promotions, and prices appear for customers. You can also apply penalties for promotions or contracts that are canceled.You can also create rules to ensure pricing adjustments are allowed only in certain conditions. Context rules work together with advanced rules framework to ensure all orders are configured and priced correctly.
- **[Advanced Rules Framework](https://help.salesforce.com/s/articleView?id=ind.comms_advanced_rules_framework.htm&release=264.0.0&type=5)**  
    Advanced Rules Framework allows you to design sophisticated natural language criteria along with customizable interfaces to ensure the right products are available to eligible customers at the right price in the right configuration. Advanced Rules determine which products and under what circumstances they apply using Entity Filters, and they are built using Rule Builder. You can use Advanced Rules to create rules that depend on context, product attributes, and multiple criteria.