function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Accessing Selected Picklist Values per Record Type in API

I have a picklist, with a lot of values. In salesforce I can configure record types to only 'see' specific values from that picklist.
In my code, I can access that field, and get all values and populate a dropdown list.
How can I modify this so that only the values for a specific record type are returned?
The per recordtype subset of picklist values is exposed via the describeLayout call.
Thanks Simon!