To deploy Lightning record page assignments, ship the files that hold them along with the page. The Metadata API Developer Guide keeps the org default in the object's metadata and the other assignments in the Lightning app's metadata.
Its FlexiPage file holds the page's regions and components, while each assignment lives in the object or app file. Below, you'll find which file holds each assignment, how to deploy it with change sets, Salesforce CLI or Flosum, and how to check who sees the page afterward.
What metadata holds a Lightning record page and its assignments?
In the Metadata API, a Lightning record page is a FlexiPage, stored with the .flexipage suffix. Our guide to deploying custom metadata, buttons and actions covers related types, and deploying one moves the page's regions and components but not its assignment.
Each kind of assignment lives in a different file. Here's where the guide puts each one and what to include in the deployment.
| Assignment | Where Salesforce stores it | Deploy it with |
|---|---|---|
| Org default | actionOverrides in the CustomObject file | FlexiPage and the object |
| App default | actionOverrides in the CustomApplication file | FlexiPage and the app |
| App, record type and profile | profileActionOverrides in the CustomApplication file | FlexiPage and the app, with the profiles and record types it names in the target org |
Profiles don't carry these assignments anymore. Salesforce's metadata reference says that from API version 45.0, you can access ProfileActionOverride only through the CustomApplication that contains it.
So deploying a profile won't move a record page assignment, even though the app's assignments still name profiles. Our guide to deploying profile metadata covers what a profile deployment does carry.
Which assignment wins when more than one applies?
You can activate a record page as the org default, as the default for specific Lightning apps, or for a mix of apps, record types and profiles. Record type assignment is only available for record pages.
Per the Metadata API guide, a matching ProfileActionOverride takes priority over the overrides set in ActionOverride. So a profile assignment inside an app beats the app and org defaults for that user.
Standard console apps are the exception to watch. Some objects in standard console apps have a system app default page that beats your org default, so you assign the custom page as that app's default instead.
What does the assignment metadata look like?
Inside the app file, each profile assignment is one profileActionOverrides block. This sample follows the one in Salesforce's CustomApplication reference, where Large is desktop and Small is the Salesforce mobile app.
<profileActionOverrides>
<actionName>View</actionName>
<content>Account_Sales_Page</content>
<formFactor>Large</formFactor>
<pageOrSobjectType>Account</pageOrSobjectType>
<type>Flexipage</type>
<profile>Sales</profile>
</profileActionOverrides>Each block covers one form factor, which is why the guide's sample repeats it with Small for phone users. You can add a recordType line to limit the assignment to one record type.
What should you check before you deploy?
Check the target org before you build the deployment. Confirm each of these exists there or is part of the deployment.
- The page's API name, which the assignment's content field points at
- Every Lightning app, profile and record type the assignment names, which a validated deploy checks so you don't miss a component another one depends on
- Any custom Lightning components on the page, another dependency a validated deploy catches
- Both form factors you assigned, since each form factor is a separate assignment
A flow on the page needs one extra step. When you deploy a Lightning page with a flow component, activate the flow, and our guide to deploying Salesforce Flows explains why it arrives inactive.

How do you deploy a Lightning record page with change sets?
Change sets suit admins who want a point-and-click move between connected orgs. Lightning Page, App, Custom Object and Record Type are all on the list of components available in change sets.
These steps follow the Help article on change set setup. Our post on async metadata retrieval covers where change sets fall short.
- Open Deployment Settings in the target org and allow inbound changes from the source org
- Create an outbound change set in the source org and add the Lightning page
- Add the app for app and profile assignments, or the object for the org default, since each is stored there, plus any record types they reference
- Click View/Add Dependencies and add only the related components you mean to ship
- Upload it, then validate and deploy it from Inbound Change Sets in the target org
When you deploy with Salesforce CLI, the app file you deploy replaces the one in the target, assignments included. The Salesforce CLI Command Reference puts it plainly: "the source you deploy overwrites the corresponding metadata in your org."
How do you deploy a Lightning record page with Salesforce CLI?
Salesforce CLI gives developers a scriptable route that fits source control. Its command reference lets you name several components in one --metadata flag, so retrieve the page with the app or object that holds its assignment.
sf project retrieve start --metadata FlexiPage:Account_Sales_Page CustomApplication:Sales_Console --target-org dev-sandboxFor larger releases, Trailhead's unit on testing and deploying changes builds a package.xml manifest with sf project generate manifest. Validate before you deploy, using the --dry-run flag the CLI reference describes as "Validate deploy and run Apex tests but don't save to the org."
sf project deploy start --manifest package.xml --target-org uat-sandbox --dry-runFor production, the same reference offers sf project deploy validate, which returns a job ID you can quick deploy within 10 days. The Salesforce DX Developer Guide shows how to turn on source tracking in Developer and Developer Pro sandboxes, for all of them from production or one at a time.
How do you remove a Lightning record page assignment?
You can't remove one the way you delete other metadata. According to the Metadata API guide, destructiveChanges.xml won't delete app ProfileActionOverrides or object ActionOverrides.
Instead, retrieve the app or object, remove the override's content row and set its type to Default, then deploy. App defaults are the exception, because the same guide says you remove those with the page assignment wizard in Lightning App Builder.
How does Flosum handle record page assignments?
In Flosum, you add components to a branch from the org you built in, which for a record page means the FlexiPage plus its app or object. Overwrite Protection then compares the branch with the target org and marks each component New, Different or Same.
A Different app file is your cue to confirm the changes and address any conflicts, so you don't replace another team's assignments. Deploying a branch starts with a validation job, and Flosum's best practices include profile and permission set scoping to avoid unnecessary overwrites.
If something still goes wrong, Rollback uses the pre-deployment backup snapshot stored by the Deploy job. Our rollback case study follows a supplier whose five delivery teams were held back by overwrites and inefficiencies.
These steps sit inside the Flosum DevOps platform. Flosum DevOps runs in Flosum's cloud or in your own cloud.
How do you check that the right page is active?
Start in Lightning App Builder, where Trailhead's unit on custom record pages shows the page's assignments under Activation. If yours isn't listed, the page arrived but its assignment didn't.
Salesforce Help also describes an Object Manager page lookup: pick an app, record type and profile, select Find Page, and read which page displays. Then test as real users in a sandbox that mirrors production, using this checklist.
| Test context | What to do | What you should see |
|---|---|---|
| App | Open a record inside the target Lightning app | The new page for that app |
| Record type | Open a record of each affected record type | The intended page for each one |
| Profile | Log in as a user on each assigned profile | The page assigned to that profile |
| Desktop and phone | Open the record on desktop and in the Salesforce mobile app | The page assigned to each form factor |
FAQs
Does deploying a FlexiPage also deploy its page assignment?
No. The Metadata API Developer Guide stores assignments on the Lightning app or the object, not in the FlexiPage, so deploy those files alongside the page.
Where are Lightning record page assignments stored?
Profile and record type assignments are profileActionOverrides on the CustomApplication, which also holds the app default. The org default is an actionOverride on the object, per the Metadata API Developer Guide.
Why does my record page look different on a phone?
Assignments are set per form factor. Salesforce's FormFactor values treat Large as desktop and Small as the Salesforce mobile app, so a desktop assignment doesn't cover phone users.
How do I remove a Lightning record page assignment with Metadata API?
Not with destructiveChanges.xml, according to the Metadata API Developer Guide. Retrieve the app or object that holds the assignment, remove the content row, set the type to Default and deploy, or use the page assignment wizard for app defaults.
Book a demo to see Flosum compare and deploy a Lightning record page with its assignments.
Thank you for subscribing




