Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Clone the ContractsExtractionContext Context Definition for Extraction

          Clone the ContractsExtractionContext Context Definition for Extraction

          Create a custom context definition by choosing nodes, defining their relationship, and adding attributes. These custom definitions are available under the Custom Definitions tab. You can create custom definitions by using new, extend, and clone actions. For extraction, Salesforce recommends using the clone feature to clone the default ContractsExtractionContext context definition.

          If you’ve user-defined fields in the custom context definition, ensure the contract record has corresponding fields for mapping.

          REQUIRED EDITIONS
          Available in: Lightning Experience
          Available in: Enterprise, Unlimited, Professional, and Developer Editions
          USER PERMISSIONS NEEDED  
          To clone a default context definition: Context Service Admin
          1. From Setup, in the Quick Find box, enter Context Service, and then select Context Definitions.
          2. Click the down arrow next to the ContractsExtractionContext context definition, and then select Clone.
          3. Enter a name for your custom definition, and then save your changes.
            The seven predefined fields under attributes fields get cloned.
          4. To edit the custom context definition you created:
            1. Go to the Custom Definitions tab.
            2. Click Edit next to the cloned context definition mapping.
            3. Modify the context definition details, if required, and then click Next.
            4. Click Next.
          5. To add contract details that you want to extract from the document.
            1. Click Add Attributes.
            2. Specify the attribute details such as Attribute Name, Type, and Data Type.
            3. Click Next.
            4. Save your changes.
          6. To map the newly added user-defined fields to the contract fields for data extraction.
            This mapping is essential for persisting data by transferring extracted data from the cache to contract fields, enabling the creation of Contract records.
            1. Click the custom context definition.
            2. Click Map Data.
            3. Select Edit next to the persistence mapping.
            4. Click Map.
              You’re directed to Context Mapping’s builder page to begin mapping your nodes and attributes. You can map the contract fields to the document’s predefined and user-defined fields.
            5. Map the fields on the contract object with the ContractCache fields. SeeAdd Context Mapping.
            6. Save your changes.
          7. To activate your context definition, click the down arrow and select Activate.
          8. To create an extraction template.
            1. From Setup, in the Quick Find box, enter Contract Lifecycle Management, and then select Contracts AI.
            2. Click Create Extraction Template.
            3. Complete these fields: Template Name, Target Object: Contract, and Record Type.
            4. Click Next.
            5. In the Attribute Definition field, select the custom context definition that you created.
            6. In the Context Mapping field, select the corresponding custom persistence mapping that you created for the context definition in the previous step.
            7. To add prompt descriptions for the newly added user-defined fields, click the Additional Field Mapping tab. See Add Description for User-Defined Fields.
            8. To modify the persistence mapping, click Edit Context Mapping. Then use the dropdown edit action to modify the persistence mappings.
            9. Save your changes.
           
          Loading
          Salesforce Help | Article