Looking at what the REST api returns, this doesn't look possible as a normal describe of an object just returns all the values like below;
_img alt="User-added image" src="https://i.stack.imgur.com/F4Do0.png" /_
if you were to to remove one of the values to appear for a record type, this would still appear in the describe, so I looked at describing the layouts which does actually work;
_img alt="User-added image" src="https://i.stack.imgur.com/e4G7t.png" /_
But this requires the field to be within either the Edit or Detail layout, if the field doesn't exist in a layout then this doesn't appear for us to check. I've also looked into the tooling api as you can query record types to get metadata back but the picklist section within here only returns random fields it seems;
_img alt="User-added image" src="https://i.stack.imgur.com/WkN4a.png" /_
I've seen other questions hovering around here but they seem pretty old so was just bumping up another query to see if I'm missing something that might have been added since?!
1 answer
Hello Rob,