Skip to main content

Assign Domain To Field (Data Management Tools)

Summary

Sets the domain for a particular field and, optionally, for a subtype. If no subtype is specified, the domain is only assigned to the specified field.

Usage

  • Domain management involves the following steps:

    1. Create the domain using the Create Domain tool.

    2. Add values to or set the range of values for the domain using the Add Coded Value to Domain tool or Set Value For Range Domain tool.

    3. Associate the domain with a feature class using this tool.

  • One attribute domain can be associated with multiple fields in the same table, feature class, or subtype as well as in multiple tables and feature classes.

  • The Input Table parameter accepts feature layers or table views.

Parameters

Label Explanation Data type

Input Table

The name of the table or feature class containing the field that will be assigned a domain.

Table View

Field Name

The name of the field that will be assigned a domain.

Field

Domain Name

The name of a geodatabase domain that will be assigned to the field name. Available domains will be loaded automatically.

String

Subtype

(Optional)

The subtype code that will be assigned a domain.

String

Derived output

Label Explanation Data type

Updated Input Table

The updated input table.

Table View

Environments

Auto Commit, Current Workspace

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes