To start using the context definition, you must first activate it. After it’s activated, your consuming application can execute various procedures using context definitions.
Required Editions
| Available in: Lightning Experience |
| Available in: Developer, Enterprise, Professional, and Unlimited editions for Industries clouds where Context Service is enabled |
| User Permissions Needed | |
|---|---|
| To activate context definitions: | Context Service Admin |
Before activating a context definition, verify these mapping details.
- The context definition must have at least one mapping associated with it.
- If there’s only one mapping, it must be set as the default mapping.
Important
Changes made to Salesforce metadata (such as modifying Salesforce Object fields) can take up to 24 hours to reflect in a context instance.
To clear the runtime schema cache make a DELETE request to the endpoint /connect/context-runtime-schema/clear. The cache is then refreshed during the next context build request.
Note You can't deactivate a context definition while it's referenced by an expression set.
Remove the reference from the expression set before you deactivate the context definition.
- From Setup, in the Quick Find box, enter Context Service, then select Context Definitions.
-
Choose the context definition you want to activate, click
, and then select Activate.