FlexiPage defines a Lightning page: a customizable screen composed of a template, named regions, and component or field instances. It controls page composition for Lightning record pages, app and Home pages, utility bars, email integration panes, and supported Experience Builder and specialized application pages. The API calls these assets FlexiPages; Setup generally calls them Lightning pages.
A page definition is separate from its activation assignments. Deploying a FlexiPage does not, by itself, make it the org-default record page or assign it to an app and profile. Likewise, parentFlexiPage describes inheritance from another page, not where users will see the page.
Key Elements
| Element | What the Element Controls |
|---|---|
type |
Required page role. Common values include RecordPage, AppPage, HomePage, and UtilityBar. The role determines which settings apply. |
masterLabel |
Required label displayed in Setup. This is distinct from the page's metadata identity, fullName. |
sobjectType |
Associated object's API name. It is null for AppPage and HomePage. Once set, it cannot be changed. |
template |
Required template selection through name. Its properties can configure Experience Builder theme layouts or supported Dynamic Forms record-save options. |
parentFlexiPage |
Name of the Lightning page from which this page inherits behavior. |
flexiPageRegions |
Named page regions and their contents. Region type accepts Region, Facet, or Background; Background is supported only for utility bars. |
itemInstances |
Contains componentInstance or fieldInstance entries. Field instances require Dynamic Forms. |
componentName |
Identifies the component to place on the page. It does not uniquely identify an individual occurrence of that component. |
identifier |
Required unique name for each component or field instance, with a maximum of 120 characters. Event interactions use component identifiers to locate their destination. |
componentInstanceProperties |
Component-specific name/value settings. Array properties use valueList; a property with type set to decorator configures the component's wrapper. |
fieldItem |
Field API name with its context prefix, such as Record.MyField__c. Relationship paths and namespace prefixes affect field resolution. |
fieldInstanceProperties |
Settings for a Dynamic Forms field instance. When name is uiBehavior, allowed values are None, Readonly, and Required. |
visibilityRule |
Conditions controlling whether a component or field instance displays. Uses criteria and optional booleanFilter logic. |
events |
Source-to-target interaction wiring, including source event names, target component identifiers, and property mappings. |
platformActionlist, quickActionList
|
Associated actions. The first controls action display order; the second names quick actions through quickActionName. |
Behavior and Constraints
Page role and object association
RecordPage overrides an object record page in Lightning Experience. AppPage provides a custom app home page, HomePage overrides Salesforce Home, and UtilityBar supplies an application's utility bar. Comm-prefixed types describe supported Experience Builder page roles, not Lightning Experience record-page assignments.
Other roles have additional boundaries. CdpRecordPage requires Data 360 enablement and overrides a CDPNearCoreObject record page. MailAppAppPage supplies an email application pane for the Outlook and Gmail integrations. Although EmailContentPage and EmailTemplatePage are page-type values, their email-builder markup cannot be retrieved or deployed as FlexiPage metadata.
An existing page cannot be retargeted to another object by changing sobjectType. That value is immutable after it is set.
Record-save options can change business behavior
On Dynamic Forms-enabled RecordPage assets associated with Account, Case, or Lead, template.properties can contain a ComponentInstanceProperty named saveOptions. These settings affect account editing, or case and lead creation, editing, and cloning.
-
UseDefaultAssignmentRuleevaluates accounts against territory rules, or applies the active assignment rule for cases and leads. -
triggerOtherEmailis available for cases and controls notification email to the contact.
The value for saveOptions is a string representation of a JSON array of name/value pairs. It is not a valueList. For example, [{"name":"UseDefaultAssignmentRule","value":"APPLY_OPTION_WITHOUT_CHECKBOX_DISPLAY"}] applies the supported save option without displaying its checkbox.
| Value | Effect and Restrictions |
|---|---|
NONE |
Hides the checkbox and does not apply the save option. |
APPLY_OPTION_WITHOUT_CHECKBOX_DISPLAY |
Hides the checkbox but applies the option during save. Supported only for UseDefaultAssignmentRule on Account and Case, not Lead or triggerOtherEmail. |
SHOW_CHECKBOX_WITH_DEFAULT_OFF |
Displays an initially unchecked checkbox. |
SHOW_CHECKBOX_WITH_DEFAULT_ON |
Displays an initially checked checkbox. |
A hidden checkbox therefore does not necessarily mean that assignment, territory, or notification behavior is disabled. Configure the corresponding assignment rules, territory rules, and email templates before configuring save options.
Outside this record-page use, template.properties is valid for CommThemeLayoutPage, where it configures theme layout properties.
Dynamic Forms and visibility
Dynamic Forms places individual fields on a Lightning page through fieldInstance. Setting a field instance's uiBehavior changes that occurrence on the page; it does not modify the underlying CustomField definition.
For both component and field instances, a visibilityRule result of true displays the instance, false hides it, and a null rule displays it by default. Visibility conditions control presentation; they do not establish access to the underlying data.
UiFormulaRule combines criteria using booleanFilter, such as 1 AND 2. Although operator is a string, its documented values are CONTAINS, EQUAL, NE, GT, GE, LE, and LT.
-
{!Record.field}is supported only on record pages. -
{!$User.field},{!$Permission.CustomPermission.permissionName}, and{!$Permission.StandardPermission.permissionName}are supported on app, Home, and record pages. -
{!$Client.FormFactor}is supported on app and record pages. Its values areSmallfor phone,Mediumfor tablet, andLargefor Lightning Experience desktop. Record-page filtering forSmallrequires Salesforce mobile app enablement. - Expressions can span no more than five fields. A relationship expression can be invalid because it traverses too many fields even when every field exists.
For a null comparison, an omitted rightValue can matter. A reported App Builder-generated condition used EQUAL without a rightValue element to test a related record's Name for null. This does not establish that the literal string null represents a null value in visibility criteria.
Regions, facets, and component properties
A region can contain up to 100 components. Each component and field instance needs its own unique identifier, even when several instances use the same component or field. A ComponentInstanceProperty has a 10,000-character limit.
A facet is a named internal region used to compose nested page content. For example, a tabset's tabs property can name a Facet containing tab components. Each tab's body can then name another facet containing its content. These facet names are internal links, not automatically references to separate FlexiPage assets.
- Component-property arrays use
valueListcontainingvalueListItems, each with avalue. Do not flatten an array into a comma-separated scalar. - Standard tab titles can serialize as system tokens such as
Standard.Tab.activityorStandard.Tab.detail, rather than their displayed labels. - For a Related List component,
parentFieldApiNameusesobject.field_nameto select a parent record. A value ofobject.Idmeans that no parent record is selected. - A component property with
typeset todecoratorconfigures the component's wrapper rather than the component itself. OnlyUtilityBarsupports decorators. - A region with
typeset toBackgroundcontains utility items that are not visible in the UI and is supported only for utility bars.
In Digital Experiences, interpret appendable, prependable, and replaceable together. All three set to enabled means unlocked; all three set to disabled means locked. If none are specified, or any one is missing, the region is unlocked. These flags are reserved for future use outside Digital Experiences. Region mode is also reserved for future use; its Append, Prepend, and Replace values do not establish an implemented merge policy.
Event interactions depend on instance identifiers
events connects an event source to targets on the page. For a Lightning web component source, sourceName identifies the component. The source property named eventName must match the event name declared in that component's js-meta.xml file.
The documented component-property interaction uses target type FlexipageServices, target name flexipage:componentService, and method updateProperties. Its target property named componentIdentifier must contain the destination ComponentInstance.identifier.
Target mappings name the properties to update and their values when the event occurs. For string, integer, and boolean properties, expressions use {!Event.eventPropertyName}. Event is the only supported expression context for these interaction mappings. Changing an instance identifier therefore requires accounting for any componentIdentifier values that target it.
Action order is display order
platformActionlist controls actions and their display order on a Lightning app page. In the Salesforce mobile app, these actions appear in the action bar. An item's sortOrder controls placement, not execution order.
actionType determines how to interpret actionName. Allowed types include ActionLink, CustomButton, InvocableAction, ProductivityAction, QuickAction, and StandardButton. For RelatedList and RelatedListRecord action-list contexts, relatedSourceEntity identifies the related list. quickActionList separately names associated quick actions through quickActionName.
Deployment and Retrieval
The FlexiPage metadata definition uses the .flexipage suffix and the flexipages folder. A package.xml manifest selects members under the FlexiPage type, and wildcard * retrieval is supported. Use the page's metadata name, not its displayed masterLabel, as the member name.
Deploy record-page assignments in the metadata that owns the assignment:
-
Org-default assignment:
CustomObject.actionOverrides. -
App-level assignment:
CustomApplication.actionOverrides. -
App/profile assignment:
CustomApplication.profileActionOverrides.
These entries reference the page through content, identify the View action, and specify the applicable formFactor, such as Large or Small. App-level entries also identify the object through pageOrSobjectType; profile-specific entries identify the profile through profile. These elements belong to the referring object or application, not to FlexiPage. A successful page deployment does not confirm that the destination uses it in the intended assignment context.
When retrieval produces nested valueList structures or standard tab-title tokens, preserve their meaning rather than replacing them with comma-separated values or displayed labels. The saveOptions JSON string is a separate serialization case.
For an unused-facet deployment failure, inspect the links among tabsets, tabs, and facet regions, not only the visible tab changes. Community reports associate these failures with incomplete metadata changes after removing a tab and with empty regions. Those reports do not establish that every empty region is invalid.
Preserve namespace prefixes in object-field references. Removing a prefix can cause a name collision or change which item a reference resolves to. In namespaced managed-package deployments, cross-object field-load failures can require attention to the relationship segment of fieldItem, such as Record.myns__RelatedObject__r.SomeField__c.
EmailContentPage and EmailTemplatePage cannot be retrieved or deployed as FlexiPage metadata, despite appearing among the page-type values.
Relationships
Dependencies depend on the containing component and property, not just the element name. A generic name or value can be a literal title, an internal facet name, an event-service name, or an external asset reference. The connections below identify possible references and impact paths, not proof that a particular page uses every related type.
References
-
ApexPage: component-propertyvalue. -
CustomField:fieldItem. -
CustomObject:sobjectType; component-propertyvalue. -
Dashboard: component-propertyvalue. -
FlexiPage:parentFlexiPage; applicablecomponentNameandnamevalues. Internal facet names alone do not establish a separate page dependency. -
Flow: component-propertyvalue. -
LightningBundle:componentName. -
LightningWebComponent:componentName,sourceName. -
ListView: component-propertyvalue. -
QuickAction:actionName,quickActionName, and applicable component-propertyvalue. -
Report: component-propertyvalue. -
WebLink:actionNamewhen the action is a custom button.
Referenced By
-
CommunityTemplateDefinition:page,themeLayout. -
CommunityThemeDefinition:themeLayout. -
CustomApplication:content,utilityBar. -
CustomObject:content. -
CustomTab:content,flexiPage. -
EmbeddedServiceConfig:layout. -
FlexiPage: applicablecomponentNameandnamevalues;parentFlexiPage. -
OmniSupervisorConfig:flexiPage.
Documentation Inconsistencies
Two page-type values have conflicting spellings between the exposed enum and Salesforce's type reference. The enum uses CommOrderConfirmationPage and OmniSupervisorPage, while the type reference lists CommOrderComfirmationPage and OmniSupervisorPageType. Do not assume these spellings are interchangeable.
Reported Issues
-
A deployed page can leave users on the system-default record page. A 2020 report described an org-level Quote page assignment being reset during deployments. Answers located org-default assignments in object
actionOverrides, app assignments in applicationactionOverrides, and app/profile assignments inprofileActionOverrides. Record-page assignment discussion. -
A null test can retrieve without a
rightValueelement. In 2020, an author created anEQUALcondition on a related record's Name in App Builder, retrieved it withoutrightValue, and reported that it performed the intended null test. This is conditional reported behavior, not a general rule for the stringnull. Null visibility-condition discussion. - Deploying only the apparent tab removal can produce an unused-facet failure. A 2022 report described resolving the failure by including additional retrieved tab and facet-related metadata that had been omitted from the change. Tab-removal deployment discussion.
- Empty regions are another reported diagnostic lead for unused-facet failures. A 2024 answer associated the failure with empty regions. Treat this as a condition to inspect, not proof that every empty region is invalid. Empty-region report.
-
Cross-object fields can fail to load during a namespaced managed-package deployment. In November 2024, an answer reported resolving this by namespace-qualifying the relationship segment of
fieldItem, for exampleRecord.myns__RelatedObject__r.SomeField__c. The answer attributed the explanation to Salesforce Support and also described a formula field as a possible workaround. That explanation remains a community account scoped to the managed-package scenario. Namespaced cross-object field discussion. -
Assigning a Lightning Experience record page to an app and profile may not change an Experience Builder site page. In a 2021 report, the site's record detail page retained its existing layout. The answer directed the author to configure the page in Experience Builder instead. This distinction does not mean that all Experience Builder page roles are outside
FlexiPage. Experience Builder assignment discussion.
Common Questions
Why did my FlexiPage deploy but not become the active record page?
The page definition and its assignments are separate. Org-default assignments belong to CustomObject.actionOverrides; app and app/profile assignments belong to CustomApplication.actionOverrides and CustomApplication.profileActionOverrides. The assignment must reference the page and the intended form factor.
Can I change a FlexiPage to use a different object?
Not by updating sobjectType on the existing page. Once that value is set, it cannot be changed. It is null for AppPage and HomePage.
Why are assignment rules running when the checkbox is hidden?
A supported saveOptions value of APPLY_OPTION_WITHOUT_CHECKBOX_DISPLAY hides the checkbox but still applies UseDefaultAssignmentRule on Account or Case. NONE hides the checkbox and does not apply the option.
How do I diagnose a FlexiPage unused-facet deployment error?
Inspect the tabset's tabs reference, each tab's body reference, and the corresponding facet regions. Reports identify incomplete tab-removal changes and empty regions as diagnostic cases; they do not establish that every empty region is invalid.
Can I retrieve email builder pages as FlexiPage metadata?
No. Pages with type set to EmailContentPage or EmailTemplatePage contain builder markup and cannot be retrieved or deployed as FlexiPage metadata.