---
schema_version: "1"
id: afdb62e68e7ecb89d7aa8c3e715021d8e0d365c5946feb378f6c916e3e9902ac
title: Context Dimensions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_context_dimensions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_context_dimensions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cbe5cff511263a4b7e938b2af5efaf6de18535caf81a72245a1046d8cf1945a9
description: Context dimensions are variables that describe the possible values to use in a context rule condition. You can reuse context dimensions across multiple rule conditions. Context dimensions are linked to one or more context mappings. The rules engine compares them to the linked context mappings.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Context Dimensions

Context dimensions are variables that describe the possible values to use in a context rule condition. You can reuse context dimensions across multiple rule conditions. Context dimensions are linked to one or more context mappings. The rules engine compares them to the linked context mappings.

Context dimensions must have a **Domain Type**, a property that specifies how the rule condition values appear when a user creates the rule condition. Valid domain types are:

- Object Lookup: Select a specific record from an sObject.
- Picklist: Select rule condition values from a Vlocity picklist.
- Type In: Type in free form string values.

**Context Dimensions**

![Context dimensions are one of several context rule components.](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/context_dimensions.jpg)

Context dimensions can also have condition weights, which allow the pricing engine to find the tightest match when used in context rules for price list entries or child price lists. For more information about condition weights, see [Using Condition Weights](https://help.salesforce.com/s/articleView?id=ind.comms_condition_weights.htm&release=264.0.0&type=5 "Condition weight is a general property of context dimensions. Condition weights are numeric values ranging from 0 to 60. These values are used by the TightestMatchInterface to calculate the relative weight of rules assigned to a price list entry.").

## Using Context Dimensions

Use context dimensions when creating rule conditions in two similar but slightly different ways:

- In a simple rule condition, when the context dimension determines the values that will be available to the user when creating a rule condition
- In a function rule condition, when the context dimension can be used as the input to the function
- Context Dimension names cannot have spaces.

## Consideration When Creating Context Dimensions

Review these consideration before creating context dimensions.

- Context dimension names cannot have spaces.
- The data type of the context dimension must be set up correctly. The String data type is deprecated. Use the Text data type instead.
- The context dimension name can't be the same as a function name.
- Context dimension values can't have any spaces.

## Creating Context Dimensions

Create context dimensions in Vlocity Product Console. For more information about creating context dimensions, see [Creating Context Dimensions](https://help.salesforce.com/s/articleView?id=ind.comms_create_context_dimensions.htm&release=264.0.0&type=5 "Context dimensions are variables that describe the values that can be used in a context rule condition.").

- **[Create Context Dimensions](https://help.salesforce.com/s/articleView?id=ind.comms_create_context_dimensions.htm&release=264.0.0&type=5)**  
    Context dimensions are variables that describe the values that can be used in a context rule condition.
- **[Create the Originating Channel Context Dimension](https://help.salesforce.com/s/articleView?id=ind.comms_create_the_originating_channel_context_dimension.htm&release=264.0.0&type=5)**  
    These instructions use the Channel\_PKL picklist which has been previously created. The picklist has the following values: Web and Retail.
- **[Create the Order Status Context Dimension](https://help.salesforce.com/s/articleView?id=ind.comms_create_the_order_status_context_dimension.htm&release=264.0.0&type=5)**  
    These instructions use the XStatus\_PKL which has been previously created. The picklist has the following values: Draft and Activated.
- **[Create the Account Status Context Dimension](https://help.salesforce.com/s/articleView?id=ind.comms_create_the_account_status_context_dimension.htm&release=264.0.0&type=5)**  
    These instructions use the CustAcctStatus\_PKL which has been previously created.
- **[Create the Account SLA Context Dimension](https://help.salesforce.com/s/articleView?id=ind.comms_create_the_account_sla_context_dimension.htm&release=264.0.0&type=5)**  
    These instructions use the AccountSLA\_PKL which has been previously created. The picklist has the following values: Gold, Silver, Platinum and Bronze.
- **[CurrentRuleObjectId Variable](https://help.salesforce.com/s/articleView?id=ind.comms_currentruleobjectid_variable.htm&release=264.0.0&type=5)**  
    In some cases, you might want to create a context rule that evaluates the entity to which it is applied. For example, you might want to create a rule that disqualifies a promotion for accounts that have already used that promotion. Or perhaps you want a rule to disqualify products when they are already in the cart line items of Industries Cart. To do this, you use a special variable called CurrentRuleObjectId, which enables your rule conditions or functions to access the current object's record Id as it iterates over them.