Newer Version Available
DescribeCompactLayoutsResult
The describeCompactLayouts() call returns a DescribeCompactLayoutsResult object containing top-level record type information about the passed-in sObjectType, as well as a mapping of record types to compact layouts. Your client application can traverse this object to retrieve detailed metadata about the compact layout.
| Name | Type | Description |
|---|---|---|
| compactLayouts | DescribeCompactLayout[] | List of all the compact layouts in use by the object. |
| defaultCompactLayoutId | ID | ID of the primary compact layout assigned to the object. The system default compact layout ID has a value of null. |
| recordTypeCompactLayoutMappings | RecordTypeCompactLayoutMapping[] | Record type mapping(s) for the object. The compact layouts associated with the object may be mapped to more than one record type. |
DescribeCompactLayout
Represents an individual item in the DescribeCompactLayout list.
| Name | Type | Description |
|---|---|---|
| actions | DescribeLayoutButtonSection[] | Array of one or more DescribeLayoutButtonSection items assigned to the compact layout. This list is set by Salesforce and is read-only. |
| fieldItems | DescribeLayoutItem[] | Array of one or more fields assigned to the compact layout. |
| id | ID | Unique ID of this CompactLayout. For information on IDs, see ID Field Type. |
| imageItems | DescribeLayoutItem[] | Array of one or more images assigned to the compact layout. This list is set by Salesforce and is read-only. |
| label | string | Label of the compact layout. |
| name | string | API name of the compact layout. |
| objectType | string | The name of the object to which the compact layout is assigned. |
RecordTypeCompactLayoutMapping
Represents a single record type mapping in the recordTypeCompactLayoutMappings field in a DescribeCompactLayoutsResult object. This object is a map of valid recordTypeId to compactLayoutId.