My org has two RecordTypes
on the Event
object. There is a custom field of type picklist that uses different picklist values depending on which record type is selected. I need to fetch a list of values for this field for a specific record type through the API.
How can I do this with the REST API?
So far the only way I've found is to call the describe function with the record ID:
/services/data/vXXX/sobjects/Event/describe/layouts/{recordId}
However this requires a separate call to lookup the appropriate record ID as this can vary between sandbox and production.
Is it possible to get the picklist values (filtered by record type) with one API call?