[SalesForce] exclude button from page layout in package doesn’t seem to work

I have a managed package where I've updated the standard page layout for a custom object to exclude the New button from a related list like so:

<relatedLists>
        <excludeButtons>New</excludeButtons>

After the package is installed in a test org however the New button is there. Is it not possible to exclude these when deploying a package?

Once the package is installed I can manually go into the page layout and remove it again.

Best Answer

In managed packages, you can add new page layouts, but you cannot upgrade existing page layouts, including layouts that are part of the package..

More info on what you can create and upgrade here: https://org62.my.salesforce.com/help/pdfs/en/salesforce_packaging_guide.pdf

From the docs:

ISV guide screenshot

Related Topic