{"id":"ui_api_resources_picklist_values","title":"Get Values for a Picklist Field","content":"<a name=\"ui_api_resources_picklist_values\"><!-- --></a><h1 class=\"helpHead1\">Get Values for a Picklist Field</h1><div class=\"body refbody\">\n<div class=\"shortdesc\"><span class=\"ph\" id=\"shortdesc\"><a name=\"shortdesc\"><!-- --></a>If a field’s <samp class=\"codeph nolang\">dataType</samp> property\n      is equal to <samp class=\"codeph nolang\">Picklist</samp> or <samp class=\"codeph nolang\">MultiPicklist</samp>, use this resource to get its values.</span></div>\n\n    <div class=\"section\">\n      <dl class=\"dl detailList\">\n        \n          <dt class=\"dt dlterm\">Resource</dt>\n\n          <dd class=\"dd\">\n            <div class=\"codeSection nolang\"><pre class=\"codeblock brush:plain\">/ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}/{fieldApiName}</pre></div>\n\n          </dd>\n\n          <dd class=\"dd\">\n            <ul class=\"ul bulletList\">\n              <li class=\"li\">\n<samp class=\"codeph nolang\">objectApiName</samp>—The API name of a <a class=\"xref\" href=\"atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects\" title=\"User Interface API supports all custom objects and external objects and many standard objects.\">supported</a> object.</li>\n\n              <li class=\"li\">\n<samp class=\"codeph nolang\">recordTypeId</samp>—The ID of the record\n                type.</li>\n\n              <li class=\"li\">\n<samp class=\"codeph nolang\">fieldApiName</samp>—The API name of the\n                picklist field on the object.</li>\n\n            </ul>\n\n          </dd>\n\n        \n        \n          <dt class=\"dt dlterm\">Available Version</dt>\n\n          <dd class=\"dd\">41.0</dd>\n\n        \n        \n          <dt class=\"dt dlterm\">HTTP Method</dt>\n\n          <dd class=\"dd\">GET</dd>\n\n        \n        \n          <dt class=\"dt dlterm\">Response Body</dt>\n\n          <dd class=\"dd\"><a class=\"xref\" href=\"atlas.en-us.uiapi.meta/uiapi/ui_api_responses_picklist_values.htm#ui_api_responses_picklist_values\" title=\"The picklist values for a field, scoped to a record type. If a picklist is dependent, this response includes the values of its immediate controlling field and how they map to the picklist.\">Picklist Values</a></dd>\n\n        \n      </dl>\n\n    </div>\n\n  </div><div id=\"sfdc:seealso\" class=\"related-links\">\n<div class=\"relinfo\">\n<h4>See Also</h4>\n<ul class=\"unstyled\">\n<li><div><a class=\"link\" href=\"atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_dependent_picklist.htm\" title=\"User Interface API exposes properties and resources that make it easy for a client to build picklists and dependent picklists.\">Build UI for Picklists</a></div></li>\n<li><div><a class=\"link\" href=\"atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm\" title=\"Use this resource to get the values for all the picklist fields of a specific record type. This resource is especially useful for getting dependent picklist values. For example, if an object has a tree of dependent picklists (Continents__c, Countries__c, Cities__c), use this resource to get all the values for each picklist in one request.\">Get Values for All Picklist Fields of a Record Type</a></div></li>\n<li><div><a class=\"link\" href=\"atlas.en-us.uiapi.meta/uiapi/ui_api_resources_record_ui.htm\" title=\"Get layout information, metadata, and data to build UI for a single record or for a collection of records.\">Get Record Data and Object Metadata</a></div></li>\n<li><div><a class=\"link\" href=\"atlas.en-us.uiapi.meta/uiapi/ui_api_resources_object_info.htm\" title=\"Get metadata about a specific object. The response includes metadata describing fields, child relationships, record type, and theme.\">Get Object Metadata</a></div></li>\n<li><div><a class=\"link\" href=\"atlas.en-us.uiapi.meta/uiapi/ui_api_quick_start_postman.htm\" title=\"Use the Postman desktop app or web-based UI to easily explore and test the UI API and other Salesforce APIs against your orgs.\">User Interface API Quick Start</a></div></li>\n</ul>\n</div>\n</div>"}