You are here:
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.
- From Setup, in the Quick Find box, enter Context Service, and then select Context Definitions.
-
On the Standard Definitions tab, find SalesAgreementDeepClone, click the dropdown menu,
and select Extend.
The Context Definition page appears.
- Enter a name for the custom context, and Click Next .
-
Save your changes.
The new context definition is created and listed on the Custom Definitions tab with its status set to Inactive.
- On the Custom Definitions tab, open the custom definition you created.
-
Go to the Map Data tab.
By default, an extension of the OOTB context mapping (SalesAgreementDeepCloneMapping) is listed.
-
From the dropdown menu for the SalesAgreementDeepCloneMapping, select Edit
SObject Mapping.
The Edit Mapping page appears.
-
Select the Mark as Default check box and then click
Map.
The Context Mapping’s builder page opens in a new tab.
-
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.
-
Map attributes to entity fields within foreign key references in the parent
entity.
- Click the Add icon next to the foreign key field.
- Select an appropriate field from the list.
- Make sure the entity field path is correct, doesn’t contain repeated characters, and then map the desired attribute to this field.
- Save your changes.
- On the Context Definitions page, go to the Custom Definitions tab.
-
From the dropdown menu for the context definition you created, select
Activate.
The status of the context definition changes to Active.
Did this article solve your issue?
Let us know so we can improve!
