---
sourceDocument: Australia Employee Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/pt-BR/employee-service-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Display correct sys_id value in contract documents

# Configure fields in contract template to display correct sys_id value in contract documents {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

As a contract configurator, update an advanced script to print the correct display value for sys_id variables in the generated contract document.

## Antes de Iniciar

Role required: sn_cm_core.contract_config

## Por Que e Quando Desempenhar Esta Tarefa

Because the script for mapping variables using the Microsoft Word add-in for ServiceNow Contracts uses the toString() function for the sys_id variable, its display value is not replaced properly in generated contract
documents.

## Procedimento

1. Navigate to AllContracts CoreContract AdministrationContract Templates.
2. Open a contract template.
3. Navigate to the Template mapping related list.
4. Select the field for which the advanced script is enabled and the display value is not shown properly.  
   Field details are displayed along with the advanced script.
5. In the script, replace the occurrences of toString() with getDisplayValue().
6. Select Update. {#cncore-addin-adv-script__3}
{#cncore-addin-adv-script__3}
**Tarefas relacionadas**   

* [View a contract record](https://www.servicenow.com/docs/zZiOUUZbcKsPCkaYRkXUtQ "View the history of a contract request to track changes, review the audit trail, and update fields. Easily see the date a contract was modified and who modified it.")
* [Modify a contract record](https://www.servicenow.com/docs/uzX7YGOjdPJloZNp_mi_0g "After a contract record is created, you can change the end date, parent contract, and contract model.")

