5

Version 29.0 of the REST API includes an attribute for picklistsForRecordType in the response to /sobjects/<object>/describe/layouts, but it appears to always be an empty array. Is there a way to enable this feature, or is it simply a placeholder for a future API version?

We have been using the SOAP API's describeLayout call to retrieve page layouts along with picklistsForRecordType mappings. Unfortunately, we have a customer org in which describeLayout returns a 20MB (uncompressed) XML document for Account, big enough to crash an iOS hybrid app using the Ajax Toolkit, so I'm eager to move to the REST API for page layouts and picklist option mappings.

  • Thats weird .I think best will be contact customer support and raise this – Mohith Shrivastava Nov 6 '13 at 4:15
1

This is now listed as a known issue: https://success.salesforce.com/issues_view?id=a1p30000000T2GwAAK

1

As of API version 32.0, RecordTypes can be retrieved from the Tooling API, e.g. /services/data/v32.0/tooling/sobjects/RecordType/<RecordTypeId>. The Metadata attribute contains an array of picklistValues, containing the picklist field and the values for the RecordType.

0

Unfortunately the Tooling API does NOT return all packaged picklist fields and for customers/partners using the translation workbench, the picklist values do NOT come back as translated. Unfortunately these two issues make this solution unusable for us.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.