Loading
Connect in real time with the Trailblazer Community in Slack Open BetaRead More
Extend Context Definition

Extend Context Definition

Extend the Out-Of-The-Box (OOTB) context to create a custom context definition with additional attributes, without modifying existing ones. Similarly, you can extend the mapping to include additional mappings, without changing the existing ones.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Unlimited, and Developer Editions
User Permissions Needed
To clone and edit context definitions:

Context Service Admin permission set

Ensure that you've set up the Context Service in Setup. To learn more, see Context Service.

  1. From Setup, in the Quick Find box, enter Context Service, and then select Context Definitions.
  2. On the Standard Definitions tab, find SalesAgreementDeepClone, click the dropdown menu, and select Extend.
    The Context Definition page appears.
  3. Enter a name for the custom context, and Click Next .
  4. Save your changes.
    The new context definition is created and listed on the Custom Definitions tab with its status set to Inactive.
  5. On the Custom Definitions tab, open the custom definition you created.
  6. Go to the Map Data tab.
    By default, an extension of the OOTB context mapping (SalesAgreementDeepCloneMapping) is listed.
  7. From the dropdown menu for the SalesAgreementDeepCloneMapping, select Edit SObject Mapping.
    The Edit Mapping page appears.
  8. Select the Mark as Default check box and then click Map.
    The Context Mapping’s builder page opens in a new tab.
  9. Link the new or existing unmapped attributes on the Structure tile to the corresponding entity fields on the Connect Objects tile. First, select the attribute, then select the entity field.
    You can map the fields only if the parent node level maps to the corresponding entity. These mappings are provided by default as this mapping extends the OOTB context mapping.
  10. Map attributes to entity fields within foreign key references in the parent entity.
    1. Click the Add icon next to the foreign key field.
    2. Select an appropriate field from the list.
    3. Make sure the entity field path is correct, doesn’t contain repeated characters, and then map the desired attribute to this field.
    4. Save your changes.
  11. On the Context Definitions page, go to the Custom Definitions tab.
  12. From the dropdown menu for the context definition you created, select Activate.
    The status of the context definition changes to Active.
 
Loading
Salesforce Help | Article