Loading
Context Service
Mapping Types

Mapping Types

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.

Add Context Mapping page

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
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.
 
Loading
Salesforce Help | Article