2

I can deploy Lightning Pages, aka Flexi Pages with the Metadata API. In order to active a Lightning Page, I can do so in the Page-Builder via Setup-Home -> Object Manager -> Account -> Lightning Record Pages. But howto do this with the Metadata API? I would assume, that this configuration is also stored in the CustomObject of the Account but after downloading it, I couldn't find such an entry and there is also no documentation of such a thing here.

So: How can I active a Lightning Record Page with the API?

2 Answers 2

3

I have the same issue and spent quite a lot of time to find the solution. Unfortunately, there are nothing about ability to activate Lightning record page via API. So it turns out that we have only Lightning App Builder for now to do this. Finally I left post at IdeaExchange. Hope Salesforce could offer any solution in the future.

3

Not sure if this was possible at the time you wrote this post but it now is and can be achieved by using the following in an applications/AppName.app metadata file:

<profileActionOverrides>
    <actionName>View</actionName>
    <content>PageName</content>
    <formFactor>Large</formFactor>
    <pageOrSobjectType>Account</pageOrSobjectType>
    <recordType>Account.RecordType</recordType>
    <type>Flexipage</type>
    <profile>ProfileName</profile>
</profileActionOverrides>
1
  • Thoughts on how to get this to work for the home page? It works for other pages for me, thank you!
    – Kat
    Mar 23, 2021 at 15:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .