I have a Managed Package which contains both Record Page and Page Layout.

But once installed, neither are assign to corresponding App and Record Type

Is it possible to include these assignments into a Managed Package and for them to be automatically enabled, or does this have to be a post-install manual step?

Looking online, it seems it's manual at the moment, but I wanted to check?



Yes, it's a manual process. You cannot assign Page Layouts to a Profile in a package, or Record Page overrides. This design limitation allows administrators to choose which layout to use in the event of multiple packages on the same object with different page layouts. It's unlikely they'll ever allow this, as it could overwrite system configurations that the Administrator had already previously configured.

  • Could I use an InstallHandler to do it after install? – Robs Dec 11 '20 at 15:51
  • 1
    @Robs Probably, but I would advise against it. Generally speaking, you don't want to clobber a subscriber's setup. At best, you might include a Visualforce page to allow an administrator a one-click option instead. – sfdcfox Dec 11 '20 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.