Newer Version Available
DescribeCompactLayoutsResult
Returns a DescribeCompactLayoutsResult object containing top-level record type
information.
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.
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.