Add a domain field to a table
As an administrator, domain-separate a custom table by adding a sys_domain field to it.
Before you begin
Role required: admin
About this task
Note:
Do not add domains to base system tables.
Procedure
Navigate to the table's list view.
For example, type <table name>
.listin the navigation filter.Right-click the list header and select Configure > List Layout.
In the Create new field section, enter
sys_domainas the Name andDomain IDas the Type.Click Add.
Click Save.
Note:
Any other means of creating a field adds a u_ prefix to the column name. But with the domain field, the system automatically creates the field without the u_ prefix. You can use the following functionality as a shortcut: Whenever you create a sys_domain field, name it sys_domain and leave the field type as is. The system automatically sets the field type to Domain ID and the field label to Domain, saving you a few clicks.
Adding domains to base system tables requires prohibitively thorough testing, updates and adding new logic. In addition in many cases, the source code is not accessible to the customer.