Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Get Values for All Picklist Fields of a Record Type
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.
This resource is available as a static method in Apex in API version 66.0 and later. See getPicklistValuesByRecordType(objectApiName, recordTypeId) in the Apex Reference Guide.
- Resource
-
1/ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId} -
- objectApiName—The API name of a supported object.
- recordTypeId—The ID of the record type.
- Available Version
- 42.0
- HTTP Method
- GET
- Response Body
- Picklist Values Collection