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.

1 Answer 1


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
    Commented Jul 23, 2013 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
    Commented Jul 23, 2013 at 16:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .