---
schema_version: "1"
id: 5a00935ec0228982447dbcac74d680e724ca699f11fe0cd28941ac7b5b3bd380
title: Context Service
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/context_service.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.context_service.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2ac54b4fd7ce43b7fe28cf7a6a3317e4a5ca799eb3d51344a03d23a66a3d3c31
description: Simplify the sharing and consumption of business application data using Context Service. Acting as a generic module, Context Service forms a layer between applications and procedures, enabling easy retrieval and use of data across various industry clouds at every step of the process.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Context Service

Simplify the sharing and consumption of business application data using Context Service. Acting as a generic module, Context Service forms a layer between applications and procedures, enabling easy retrieval and use of data across various industry clouds at every step of the process.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Professional</strong>, and <strong>Unlimited</strong> editions for Industries clouds where Context Service is enabled</td></tr></tbody></table>

Using Context Service, your business users can enhance application performance by optimizing data access and eliminating redundant input. When an application sends a data request, the context fetches and loads all necessary data from the database onto itself. It then distributes the required data to specific processes to fulfill the application's request.

## How Applications Use Context Service

All business applications require real-time execution of rules or procedures to fulfill requests. These procedures rely on input data to process a request and generate results for their respective applications. In cases where a procedure involves multiple steps, multiple requests are sometimes made to a database to fetch similar data.

Context Service acts as a layer between the application and the rules or procedures, providing the requested data during both the configuration (design time) and execution (run time) stages.

- **[Turn On Context Service](https://help.salesforce.com/s/articleView?id=ind.context_service_turn_on_context_service.htm&release=264.0.0&type=5)**  
    Grant users access to Context Service objects and features.
- **[Learn and Explore Context Service](https://help.salesforce.com/s/articleView?id=ind.context_service_learn_and_explore.htm&release=264.0.0&type=5)**  
    Learn how Context Service can help your users consume data for their business applications. Understand its core features and learn how to use Context Service with an application.
- **[Context Service Limits](https://help.salesforce.com/s/articleView?id=ind.context_service_limits.htm&release=264.0.0&type=5)**  
    When you create and use context definitions within Context Service, adhere to the Salesforce org limits.
- **[Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_context_definitions.htm&release=264.0.0&type=5)**  
    Context definitions ensure efficient data access at every step of the process. A context definition defines the relationship between the nodes and the attributes within each node. Your users can use nodes and attributes to easily access the relevant data from the mapped data source. Various Salesforce products offer predefined context definitions based on their use case.
- **[Map Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_map_context_definitions.htm&release=264.0.0&type=5)**  
    After you create a context definition, define where the data is fetched from. Mapping data must be fetched from a data source for both the node and the attribute levels of the context definition.
- **[Context Filters with Custom Filter Logic](https://help.salesforce.com/s/articleView?id=ind.context_service_context_filters.htm&release=264.0.0&type=5)**  
    Retrieve precise, relevant, and dynamic data from your context definitions. Customize filters for your context definitions without modifying code.
- **[Migrate Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_context_definitions_packages.htm&release=264.0.0&type=5)**  
    Create context definitions and add individually or as a bundle into a single package. To migrate, deploy and use the package in another organization. Context definition packages make your custom objects and fields portable across organizations.
- **[Call Standard Context Service Invocable Actions from Flows](https://help.salesforce.com/s/articleView?id=ind.call_context_service_invocable_actions_from_flow.htm&release=264.0.0&type=5)**  
    Manage your business application data efficiently by combining the capabilities of Salesforce Flow and Context Service invocable actions.
- **[Apex Classes for a Context Definition](https://help.salesforce.com/s/articleView?id=ind.ctx_apex_classes_for_context_definitions.htm&release=264.0.0&type=5)**  
    Apex classes provide the framework for the structure and data of a context definition. You can use these classes to create and manage the context data in your Salesforce org.
- **[Transform a Context Definition](https://help.salesforce.com/s/articleView?id=ind.ctx_transform_with_dpe.htm&release=264.0.0&type=5)**  
    Reshape your context definition with Data Processing Engine into a specific structure required for Document Generation. Using the transformed data, you can generate documents like contracts, proposals or invoices.