4

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.

2
  • Review James' answer. He's probably correct, so no idea why he deleted it. In short, page layouts are not "updateable", only "createable", which means that whatever the layout looks like once installed is what the customer will have until they (or you) change it. On a fresh install, the button should not appear.
    – sfdcfox
    Commented Feb 4, 2014 at 19:30
  • Yes totally agree its spot on, i have sent him a message to add it back... ;-) Commented Feb 4, 2014 at 19:45

1 Answer 1

3

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

3
  • @Phil B Hopefully that answers your question on what can / cannot be done via managed packages. If not, I probably read the question wrong. Commented Feb 4, 2014 at 19:46
  • thanks, yeah I think this answers my question so if I install this package with the buttons removed in a fresh org instead of an upgrade the buttons should be excluded correct?
    – Phil B
    Commented Feb 4, 2014 at 20:20
  • Your page layout should be okay if you're installing in a fresh org, yes. Only one way to find out, though! Commented Feb 4, 2014 at 20:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .