function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Melanie Wolf 1Melanie Wolf 1 

How to add a custom user profile page layout to managed package?

Hi,
I have a customized user profile page layout I like to add to the managed package. I can't find it in the add components dialog. Neither below 'Page Layout' nor somewhere else.

How can I add it to the managed package?

VinayVinay (Salesforce Developers) 
Hi Melanie,

Page layouts in a managed package can only be created, not updated.

Review below links which can help you.

https://salesforce.stackexchange.com/questions/77535/updating-page-layout-when-package-installed
https://salesforce.stackexchange.com/questions/12016/update-layout-in-post-install-script

Thanks,
Vinay Kumar
Melanie Wolf 1Melanie Wolf 1
Thanks for your quick answer. It seems I didn't described the problem well.
I don't like to update it. I like to add a new Custom User Profile Page Layout to my managed package to allow subscribers to have it available for the first installation.

Thanks for your help.
Melanie
VinayVinay (Salesforce Developers) 

Check steps mentioned in below links.

https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/packaging_uploading.htm
https://developer.salesforce.com/forums/?id=906F0000000BaJSIA0
https://salesforce.stackexchange.com/questions/102990/updating-custom-page-layout-in-a-managed-package#:~:text=As%20per%20the%20SFDC%20ISV,probably%20deprecate%20the%20older%20one%20.

Thanks,
Vinay Kumar

Melanie Wolf 1Melanie Wolf 1
Thank you Vinay,
I'm able to add any other page layout and customized layout for standard objects into the managed package.
But it's not possible for this customized user profile page layout. 
Are you aware of any specific behavior for this?

Best regards
Melanie
VinayVinay (Salesforce Developers) 
Hi Melanie,

Might be this is not available in changeset,  can you try checking below package.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members> UserAlt-User Profile Layout</members>
        <name>Layout</name>
    </types>
    <version>48.0</version>
</Package>

I tried and was able to retrieve successfully.

Also,  tried to check but haven't found any specific documentation customized user profile page layout is unavailable in list. 

Thanks,
Vinay Kumar
Melanie Wolf 1Melanie Wolf 1
Right. I can deploy and retrieve this via workbench or other tools.
But still I don't find a way to add this component into the managed package.
I think I need to raise a case for this. But many thanks for your quick answers!  : )

Best regards
Melanie
Md Raza 6Md Raza 6
Hi, I'm Raza I don't Know What is the Answer but if you want to know about Jan Kalyan Naya savera yojana (https://myhindiguide.in/jan-kalyan-naya-savera-yojna/) so click here to read the full article
Saranga BaruahSaranga Baruah
Hi Melanie 

I am also having the same problem statement. Did you manage to find some solution for the issue?

Thanks,
Saranga