Skip to main content The new Salesforce certifications experience is live! Visit Trailhead Academy to explore your new certifications homepage.
When you have a picklist and you can set different values per record type, how do you gain information on what field is available for each record type?

 

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
  1. Oct 16, 2017, 4:40 AM
    Hello Rob,

     

                        I will suggest you to post this question to developer board for the quick response. This community is focused on configuration and design questions. Programming questions are best to post in one of the developer forums for a quick response here 

     

    https://developer.salesforce.com/forums/#!/feedtype=RECENT&criteria=ALLQUESTIONS

     

    http://salesforce.stackexchange.com/

     

    Thanks,

     

    Pritam Shekhawat  
0/9000