Document ID field
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
-
Navigate to the form view for the table.
-
Right-click the header and select Configure > Form Layout.
-
Create a field to store the table name and click Add.
- Name: Any label (for example,
Model table) - Type: String
- Name: Any label (for example,
-
Create a field to store the record reference and click Add.
- Name: Label for your document ID field (for example,
Model ID) - Type: Document ID
- Name: Label for your document ID field (for example,
-
Click Save.
-
Right-click the form header and select Configure > Dictionary.
-
Open the dictionary entry for the document ID field.
-
Under Related Links, click Advanced view.
-
In the Dependent field, enter the column name of the table reference field (for example,
u_model_table). -
In Attributes, add the show_all_tables dictionary attribute to display system tables.
-
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.
-
Configure the form to remove the table reference field.
Related topics
---
title: Document ID field
description: You can create document ID fields to reference any record on any table.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/platform-administration/t\_CreatingADocumentIDField.html
release: brazil
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Reference, Field administration, Forms, fields, and lists, Configure core features, Administer the ServiceNow AI Platform]
---
# Document ID field
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 **Configure** > **Form Layout**.
3. Create a field to store the table name and click **Add**.
- **Name**: Any label \(for example, `Model table`\)
- **Type**: String
4. Create a field to store the record reference and click **Add**.
- **Name**: Label for your document ID field \(for example, `Model ID`\)
- **Type**: Document ID
5. Click **Save**.
6. Right-click the form header and select **Configure** > **Dictionary**.
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, `u_model_table`\).
10. 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. [Configure the form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/configure-form-layout.md) to remove the table reference field.
**Related topics**
[Configuring the form layout](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/configure-form-layout.md)
[Altering tables and fields using dictionary attributes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/table-administration-and-data-management/c_DictionaryAttributes.md)
| title | Document ID field |
| description | You can create document ID fields to reference any record on any table. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/platform-administration/t\_CreatingADocumentIDField.html |
| release | brazil |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | ReferenceField administrationFormsfieldsand listsConfigure core featuresAdminister the ServiceNow AI Platform |