If, like me, you're not making a lightning page an org or app default, you've probably got a LOT of boxes to check, in order to make sure every combination of App, Record Type and Profile gets the access they need. Especially because there is no 'check all' option, or way to indicate that record types are the only thing I care about.
I created my lightning page, activated it and assigned it, all in Sandbox. When I pushed it to Production, all those assignments disappeared. I did include all profiles in my changeset.
Is there a way to preserve those assignments in deployments?
Best Answer
The lightning app metadata (
src/applications/YourAppName.app
) contains the overrides for the app as a whole and also the per recordtype & profile assignments.The object level flexipage override is similarly contained in the
objectName.object
metadata for each object.The profile settings themselves do not contain this flexipage assignment metadata. The profile settings does include the home tab override per profile.
This can all be retrieved and deployed via the metadata API, so it should work the same in Change Sets.
Update: Looking at the documentation for the ProfileActionOverrides, it looks like other profile based overrides can be selected when creating the Change Set that aren't available in a packaging scenario.
Can you confirm which elements you included as part of the change set?