{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":9642,"path":"employee-service-management/contract-management-pro/config-ext-pt-to-add-metadata.md","title":"Configure an extension point to add contract metadata","bundle":null,"doc_type":null,"release":"australia","body":"\n# Configure an extension point to add contract metadata\n\nUpdate the script in an extension point to specify fields in a related contract repository table where you want to add the extracted information for unmapped fields of a metadata extraction use case.\n\n## Before you begin\n\nRole required: admin\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Extension Points** &gt; **Scripted Extension Points**.\n\n2.  In the **API Name** field, search for `sn_cm_gen_ai.NowAssistUpdateMetadataExtractedValuesExt`.\n\n3.  Select the record.\n\n4.  Select the **Create implementation** related link.\n\n5.  On the Script Include form, fill in the fields.\n\n    For a description of the field values, see [Scripted Extension Point form fields](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/legal-request-management/scripted-extension-point-form-fields.md).\n\n6.  In the **Script** field, update the script to specify the contract repository related table and the field mapping\n\n    -   In the `canHandle` function, add the request table name where you want to update the extracted information.\n    -   In the `updateContractRepositoryFields` function, add a script to update the fields. The extracted metadata will be fetched from the `retrievedFieldsData` parameter.\n7.  Select **Update**.\n\n\n## Result\n\nThe script specifies the related contract repository tables and their field mappings. After metadata extraction, values from these fields are added according to the defined mapping.\n\nFor more information on metadata extraction use case mapping, see [Map a use case for contract metadata extraction](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/contract-management-pro/cmpro-na-usecase-mappings-me.md).\n\n**Parent Topic:**[Configuring contract metadata extraction](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/contract-management-pro/cncore-conf-metadata-extraction.md)\n\n**Related topics**  \n\n\n[Create use cases for contract metadata extraction]()\n\n[Map a use case for contract metadata extraction]()\n\n[Configure system properties for contract metadata extraction]()\n\n[Enable notification for contract metadata extraction]()\n\n[Configure the URL for metadata extraction notifications]()\n\n"}}