Get Compact Layouts Using sObject CompactLayouts
Retrieves a list of compact layouts for a specific object. This resource is available
in REST API version 29.0 and later.
Syntax
Example
- Example Request
-
- Example Response Body
- This sample JSON response is for compact layouts created on the Account object. In
this example, only one custom compact layout was created for Account. The custom compact
layout is assigned as the primary compact layout for the object, and it contains two
fields: Account Name and Phone.
- If you haven’t defined any compact layouts for an object, the compactLayoutId returns as Null.