Loading
Context Service
Set Up Related DMO Hydration

Set Up Related DMO Hydration

Connect a parent and child Data Model Object (DMO) so Context Service hydrates the complete hierarchy in a single request instead of a separate request for each DMO. Configure the relationship in Data 360, then add and map the child DMO in your context definition.

Required Editions

Available in: Lightning Experience
Available in: Developer, Enterprise, Professional, and Unlimited editions for Industries clouds where Context Service and Data 360 are enabled.
User Permissions Needed
To set up related DMO hydration: Context Service Admin

If you already have a context definition with a DMO parent-child node tree, it hydrates the related DMO data automatically. No definition changes are required.

To set up related DMO hydration from scratch:

  1. In Data 360, on the parent DMO's Relationships tab, create or confirm an active relationship to the child DMO. Specify the foreign key field on the parent, the cardinality, and the related field (the primary key) on the child DMO.
    For more information on relationship types and cardinality, see Data Model Object Relationships. To create or confirm a relationship between two DMOs, see View Your Data Model Objects.
  2. In Context Service, create or edit your context definition and add the child DMO as a child node under its parent DMO node in the definition's structure.
    For more information on adding nodes to a context definition, see Create a Context Definition.
  3. In your context definition, map each node to its corresponding DMO using the sObjects & DMO tab.

    See Add Context Mapping.

    Context Service automatically discovers the join fields from the Data 360 relationship metadata. No additional mapping is needed. If Data 360 contains more than one relationship between the same pair of DMOs, Context Service selects the first one automatically, consistent with the behavior for standard Salesforce objects. To specify which relationship to use, configure an explicit join field mapping on the child DMO in the context definition.

 
正在加载
Salesforce Help | Article