---
sourceDocument: Xanadu Employee Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/employee-service-management

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Configure an extension point to add contract metadata

# Configure an extension point to add contract metadata {#ariaid-title1}

* Release version: Xanadu
* 
* Updated October 21, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Update 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.

## Before you begin

Role required: admin

## Procedure

1. Navigate to AllSystem Extension PointsScripted Extension Points.
2. In the API Name field, search for <kbd class="ph userinput">sn_cm_gen_ai.NowAssistUpdateMetadataExtractedValuesExt</kbd>.
3. Select the record.
4. Select the Create implementation related link.
5. On the Script Include form, fill in the fields.  
   For a description of the field values, see [Scripted Extension Point form fields](https://www.servicenow.com/docs/9AwTj~Zjw_9~9Z_zczo7jA "List of fields in the Scripted Extension Point.").
6. In the Script field, update the script to specify the contract repository related table and the field mapping
   * In the `canHandle` function, add the request table name where you want to update the extracted information.
   * In the `updateContractRepositoryFields` function, add a script to update the fields. The extracted metadata will be fetched from the `retrievedFieldsData` parameter.
   {#config-ext-pt-to-add-metadata__choices_tpy_fcw_cdc}
7. Select Update.
**Related tasks**   

* [Create use cases for contract metadata extraction](https://www.servicenow.com/docs/WS51QBvyYCRvfc9NZOUbKg "Create a use case for contract metadata extraction to define the information that you want Now Assist to detect in a document.")
* [Map a use case for contract metadata extraction](https://www.servicenow.com/docs/KPRPIeIRzvMnDhb6rPs4Mw "Map a use case to specific tables, and define conditions to apply the use case for metadata extraction.")
* [Configure system properties for metadata extraction](https://www.servicenow.com/docs/ze_LOuSdAcbwBXEAGsvKWw "Configure system properties to specify whether the metadata extraction should be automatically initiated or manually.")
* [Enable notification for metadata extraction](https://www.servicenow.com/docs/b5tOn_CuKlg2eZ9c7TkluQ "Enable the notification for metadata extraction to receive email notifications when metadata extraction is completed.")
* [Configure the workspace URL for metadata extraction notifications](https://www.servicenow.com/docs/EFH4s2UsvF58cw6bIakOqg "Configure an extension point to update the workspace URL in email notifications, so that users can navigate to the correct workspace and view the extracted metadata.")

*[\>]: and then


