Summary
The Get Field Value tool gets the value of the first row of a table for the specified field.
Usage
This tool is intended for use in ModelBuilder and not in Python scripting.
This tool differs from the Iterate Field Value tool as only the first row of the input table is read, and the value of the specified field in this row becomes the output.
Syntax
GetFieldValue_mb (in_table, field, {data_type}, {null_value})
Parameter | Explanation | Data Type |
in_table | Input table to get the value from. | Table View |
field | Input field to get the value from. The value of the first record will be output. | Field |
data_type (Optional) | The data type of the output. | String |
null_value (Optional) | The value to use for null values. The default is 0 for numbers and blank ("") for strings. | String |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- ArcGIS Desktop Basic: Yes
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes