Newer Version Available
Describe Layouts
Returns a list of global publisher layouts and descriptions. You can request descriptions for a specific object or for all publisher layouts. Layout names and a list of fields are returned. Global publisher layouts customize the actions on global pages (like the Home page). In Lightning Experience, these layouts populate the Global Actions menu.
- URI
- To return descriptions of all global publisher layouts, the URI is: /services/data/vXX.X/sobjects/Global/describe/layouts/
- For a layout description for a specific object, use /services/data/vXX.X/sobjects/Object/describe/layouts/
- For a layout description for objects that have more than one record type defined, use /services/data/vXX.X/sobjects/Object/describe/layouts/<recordTypeId>. For example, the following URI requests the layout for a specific Contact record ID: /services/data/vXX.X/sobjects/Contact/describe/layouts/012xx00000024x5AAA. A GET request for objects that have more than one record type defined returns null for the layouts section of the response.
- Formats
- JSON, XML
- HTTP Method
- HEAD, GET
- Authentication
- Authorization: Bearer token
- Parameters
- None required
- Example for getting global publisher layouts
-
- Example JSON Response body contactlayout.json file
-