Create Compact Layout
sf_create_compact_layoutCreate a Salesforce Compact Layout to highlight up to 10 key fields in the record highlights panel, mobile app, and related list cards. Specify object, developer name, label, and fields to surface critical information 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 |