Mapping types specify where to retrieve data for your context definitions. You can map
all context definitions to a source object. The source object can be a standard object, data
model object, context definition object, or any other input data source that you choose. Map
your definition automatically or manually.
Required Editions
Available in: Lightning Experience
Available in: Developer, Enterprise, Professional, and
Unlimited editions for Industries clouds where Context Service is
enabled
Context Service has two mapping types—Automatic Salesforce Object Mapping
and Input Mapping.
Automatic Salesforce Object Mapping
To automatically match your nodes and attributes to standard objects, select Automatic
Salesforce Object mapping on the Add Context Mapping page. When you select automatic object
mapping, Context Service maps the fields in the context definition’s structure to the fields
with the same name in Salesforce objects. For example, if you have an Account node with an
attribute called Name in your context definition’s structure, and an object field called
Name, the context definition field is automatically mapped to the object field.
Important
If you don’t select automatic mapping, you can manually map the nodes and attributes
in the context definition’s structure to Salesforce objects, or to the objects (nodes
and attributes) in another context definition.
You can select a single type of data source for each
mapping.
Input Mapping
To hydrate context based on the input data to be passed along with the hydration request,
select input mapping. This method differs from hydrating using Salesforce objects or custom
objects. During input mapping, define a mapping between the nodes and fields in the input
JSON and the nodes and attributes in the context definition.
After you define your context definition and its structure, you can generate Input
Mapping.
On the Context Definition Details page, on the Map Data tab, select Input
Mapping.
To generate a mapping only for the blank attributes, click Retain and
Generate.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.