You need to sign in to do that
Don't have an account?
Sebastian Page
How can be extract all picklist values Using apex
I have a requirment to fetch the details of a record type (case Object) and present in JSON.
Among other fields on the Record type, there are few dependent Picklist fields :
Ticket Category (Controlling Ticket Type)
Ticket Type (controlling Ticket Item)
Ticket Item
I am suppose to extract all the mappings of the picklists and fields on the record type page layout.
If some one have worked on a similar requirement, please suggest how this can be achieved.
Thanks and Regards
Sebastian Page
Among other fields on the Record type, there are few dependent Picklist fields :
Ticket Category (Controlling Ticket Type)
Ticket Type (controlling Ticket Item)
Ticket Item
I am suppose to extract all the mappings of the picklists and fields on the record type page layout.
If some one have worked on a similar requirement, please suggest how this can be achieved.
Thanks and Regards
Sebastian Page
Try below snippet.
https://developer.salesforce.com/blogs/developer-relations/2008/12/using-the-metadata-api-to-retrieve-picklist-values.html
Thanks,