ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Get Field Value

  • Summary
  • Usage
  • Syntax
  • Environments
  • Licensing information

Summary

The Get Field Value tool gets the value of the first row of a table for the specified field.

Learn how Get Field Value works in ModelBuilder

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

arcpy.mb.GetFieldValue(in_table, field, {data_type}, {null_value})
ParameterExplanationData 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

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

Related topics

  • An overview of Model Only toolset
  • A quick tour of using Model Only tools

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal