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
Alexander Zaytsev 1Alexander Zaytsev 1 

Update page layout profile assignment on package install

I am creating a managed package.

As part of that package, i will supply some layouts for standard objects.

After package install, the admin can see the new layouts, but they are not assigned to the profiles.

Is there any way for the package to assign the layouts to the profiles? (e.g. using Apex Post Install script, or even without it?)

NagendraNagendra (Salesforce Developers) 
Hi Alexander,

Sorry for this issue you are facing.

May I suggest you please check with below link from the stack exchange community with a similar discussion. Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra