I'm developing a managed package and I have some custom fields of "Lead" sobject included + custom lead layout. I want to automate it all for user. Is there any way to: replace default layout, add fields to existing layout, add custom layout and assign it to all? I found the same question, but it's still not answered. Update layout in post install script And this description:
The page layout of the person uploading a package is the layout used for Group and Professional Edition organizations and becomes the default page layout for Enterprise, Unlimited, and Developer Edition organizations.
Page layouts should be packaged alongside complimentary record types if the layout is being installed on an existing object. Otherwise, the installed page layouts must be manually applied to profiles.
If a page layout and a record type are created as a result of installing a package, then the uploading user’s page layout assignment for that record type is assigned to that record type for all profiles in the subscriber organization unless a profile is mapped during an install or upgrade.
does not seem to be working. I'm getting just duplicate of layout.
It is possible or user needs to assign layout manually after installing?