Create Compact Layout
sf_create_compact_layoutCreate a Salesforce Compact Layout to define which key fields appear in the highlights panel, mobile, and related list cards, so important information is visible at a glance.
Instructions
Creates a Compact Layout for a Salesforce object. Compact Layouts define which fields appear in the highlights panel at the top of a record page (up to 10 fields), in Salesforce Mobile, and in related list cards. Use when you want to surface the most important fields at a glance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Display label | |
| fields | Yes | Field API names to show (max 10), e.g. ['Name', 'Status__c', 'Amount'] | |
| fullName | Yes | Compact layout developer name | |
| objectName | Yes | Object API name to add the compact layout to | |
| setAsDefault | No | Set this compact layout as the default for the object |