---
sourceDocument: Yokohama ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/platform-administration

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Document ID field

# Document ID field {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

You can create document ID fields to reference any record on any table.

## Before you begin

Role required: personalize_dictionary

## About this task

In comparison, a reference field references a record on a specific table. To
reference records from any table, two fields need to work together---one to store the
table reference and another to store the record reference.

You can select the document ID type when creating a new field.

## Procedure

1. Navigate to the form view for the table.
2. Right-click the header and select ConfigureForm Layout.
3. Create a field to store the table name and click Add.  
   * Name: Any label (for example, <kbd class="ph userinput">Model table</kbd>)
   * Type: String
   {#t_CreatingADocumentIDField__ul_xph_wmp_r4}
4. Create a field to store the record reference and click Add.  
   * Name: Label for your document ID field (for example, <kbd class="ph userinput">Model ID</kbd>)
   * Type: Document ID
   {#t_CreatingADocumentIDField__ul_fyx_ymp_r4}
5. Click Save.
6. Right-click the form header and select ConfigureDictionary.
7. Open the dictionary entry for the document ID field.
8. Under Related Links, click Advanced view.
9. In the Dependent field, enter the column name of the table reference field (for example, <kbd class="ph userinput">u_model_table</kbd>).
10. **Optional:** In Attributes, add the show_all_tables dictionary attribute to display system tables.
11. Click Update. When users click the reference lookup for the document ID field, a dialog appears that allows them to select the table and then the record. The sys_id of the selected record is stored in the document ID field and the table name is stored in the table reference field.
12. **Optional:** [Configure the form](https://www.servicenow.com/docs/OP5d1l_hnEOtnvq9hX3Pjg#configure-form-layout "Administrators or users with the personalize_form role can configure the form and related list layout.") to remove the table reference field.  
    ![Document ID]()
**Related concepts**   

* [Configuring the form layout](https://www.servicenow.com/docs/OP5d1l_hnEOtnvq9hX3Pjg#configure-form-layout "Administrators or users with the personalize_form role can configure the form and related list layout.")
* [Altering tables and fields using dictionary attributes](https://www.servicenow.com/docs/AVZCHmJIFWPaocJvj2DHpw "Dictionary attributes alter the behavior of the table or field that the dictionary record describes. Administrators can add or modify dictionary attributes.")

*[\>]: and then


