I'm trying to update Lightning Record Pages with Profiles (Assignments By App, Record Type, and Profile):

To get (retrieve) all the details I'm using the following package.xml

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">

It returns a .app file with actionOverrides, profileActionOverrides & few other details.

But the file doesn't contain the namespaces prepended, how can I make it happen? like the pageOrSobjectType, recordType, content come with the prepended namespace.

Also, if I want to extract only profileActionOverrides, how can I do that?

Say I want to deploy only one ProfileActionOverrides - for a particular profile of CustomObject with RecordType1,

<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">




I've manually added the namespace__. I'm successfully able to Deploy to this to any org provided I've the username & password.

But how can I deploy to a client system without asking for their email & password, also can we do this from Apex side? What are the best ways to deploy to different clients?


  • What do you mean here -- [how can I deploy to a client system without asking for their email & password], is [client = sandbox] and [email & password = username & password]?
    – Jayant Das
    May 23, 2018 at 12:49
  • client = users who has installed our application/product in their org May 23, 2018 at 14:10
  • And are you distributing your app as a managed or unmanaged package?
    – Jayant Das
    May 23, 2018 at 14:22
  • managed package May 23, 2018 at 14:24


This site is temporarily in read-only mode and not accepting new answers.