Create Lightning App Builder Page (FlexiPage)
sf_create_flexipageCreates a Lightning App Builder page (FlexiPage) in Salesforce Metadata API. Supports App, Record, and Home page types with custom templates and object assignment.
Instructions
Creates a Lightning App Builder page (FlexiPage) in the Salesforce org via the Metadata API. Supports AppPage, RecordPage, and HomePage types. Specify the page template (e.g. header_and_right_rail, header_and_three_regions) and for RecordPage provide the object API name. The page can then be activated and assigned via Setup > Lightning App Builder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Display label | |
| pageName | Yes | FlexiPage API name | |
| pageType | Yes | Type of Lightning page | |
| template | No | Page template name, e.g. 'header_and_right_rail' | header_and_right_rail |
| description | No | Description | |
| masterLabel | Yes | Master label for the page | |
| objectApiName | No | Object API name (required for RecordPage) |