Get Layouts and Descriptions for an Object With Multiple Record Types
Retrieves lists of layouts and their descriptions.
For a layout description for objects that have more than one record type defined, the recordTypeId can be obtained from the result from /services/data/vXX.X/sobjects/sObject/describe/layouts/
A GET request for objects that have more than one record type defined returns null for the layouts section of the response.
Syntax
- URI
- /services/data/vXX.X/sobjects/sObject/describe/layouts/recordTypeId
- Formats
- JSON, XML
- HTTP Method
- GET
- Authentication
- Authorization: Bearer token
- Parameters
- None required
Example
- Example Request
-
curl https://MyDomainName.my.salesforce.com/services/data/v64.0/sobjects/Chocolate__c/describe/layouts/0125c000000oIN9AAM -H "Authorization: Bearer token"
- Example Response Body
-
{ "buttonLayoutSection" : { "detailButtons" : [ ... ] }, "detailLayoutSections" : [ ... ], "editLayoutSections" : [ ... ], "feedView" : null, "highlightsPanelLayoutSection" : null, "id" : "00ho000000CUJWIAA5", "multirowEditLayoutSections" : [ ], "offlineLinks" : [ ], "quickActionList" : { "quickActionListItems" : [ ... ] }, "relatedContent" : null, "relatedLists" : [ ... ], "saveOptions" : [ ] }