---
schema_version: "1"
id: 4920d4fdbf6f0b52362603df00b4fdf9c3a1d479b7399be972276763fa50b4c1
title: Any Context Scope
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_any_context_scope.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_any_context_scope.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cdc664b90ce0fc026c77ac96b0ae8ba54f4c5481e964b04cb3e795ff8d556a91
description: The any context scope enables you to create context mappings that can be used across all root context scopes. For example, instead of creating separate context mappings to evaluate the status field across orders, quotes, and opportunities, you can use any context scope to evaluate the status for all root entities, including orders and quotes. You can also specify any as the entity for second-level context scopes, enabling you to evaluate information in accounts and contracts across all root entities.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Any Context Scope

The `any` context scope enables you to create context mappings that can be used across all root context scopes. For example, instead of creating separate context mappings to evaluate the status field across orders, quotes, and opportunities, you can use `any` context scope to evaluate the status for all root entities, including orders and quotes. You can also specify `any` as the entity for second-level context scopes, enabling you to evaluate information in accounts and contracts across all root entities.

**Any and Second-Level Context Scopes**

![The Any root context scope includes Order, Opportunity, Quote, and Asset. The Any root scope can reference either the Account or Contract second-level scope.](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/any_context_scope.jpg)

**Any.Account Context Scope**

![To create an Any context scope, go to General Properties and set the Entity property to Any.](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/any_scope.jpg)

While the `any` context scope allows more flexibility and efficiency when defining context mappings, in some cases, when you know that the value can come from only on sObject, you might want to explicitly specify that object as the root scope entity. By doing so, you limit the number of fields that are retrieved and stored in the session cache. When the context scope is Order.Account, the rules engine retrieves fields from the account sObject only. If the context scope is Any.Account, the rules engine retrieves fields from all root entities: Order, Opportunity, Quote, and Asset. For example, the **Originating Channel** field only exists on the Order object. If you specify Any as the root entity for Originating Channel, the system will look across all root entities even though it only exists on Order, which is not an efficient design.