I am attempting to get all page-layouts (w/ details) for a given object via the API.

Currently using describeLayout which gives me the details I would need about a layout, the problem with this is that it only returns the layouts applicable for the calling user. I would like to get all the possible layouts.


describeLayout is for use with applications that render pages that directly interface with salesforce.com, such as canvas apps, mobile apps, and so on. To get all of the layouts, take a look at the Metadata API, and in particular, the "File-based" calls.

  • so essentially retrieving and parsing the XML definition of the layouts. – Christoph Jul 23 '13 at 15:32
  • Unfortunately, that's the only solution. The SOAP API was designed with the intent of allowing third-party application developers to have all the information they needed to create salesforce.com-driven interfaces, while the Metadata API was created to allow programmatic administrative interfaces. – sfdcfox Jul 23 '13 at 16:00

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.