I am developing a Salesforce app for my company. The plan is that this will eventually be a managed package that will be released on the Salesforce App Exchange.

One of my first tasks was to create our own custom version of Notes, where we could keep investor data. So I have InvestorNote, and these belong to Accounts. So I wanted to see how to make sure that the InvestorNotes are listed on whatever Account page they belong to. This turned out to be easy. I found a good article here:


But how do I recreate this as part of the Managed Package? When our customers install our app, how can I be sure that this custom object will be listed on the Account pages?

1 Answer 1


The straight answer is as an ISV you cannot control the page layout of subscriber org.

The options are below

1.Document a post install step for customer to drag the related list from the Related list page

2.You can create a custom account page layout which has related list already and your customers will assign that layout to the user

3.Of you want to further automate this then you will need to use metadata API in apex to do the assignment via admin page or set up page .This will be lot of code .

  • Of point #3, can you point me to any examples?
    – LRK9
    Commented Oct 25, 2016 at 15:47
  • You have to put that as another question :) Commented Oct 25, 2016 at 15:49
  • But that was the question, I'm looking for how to do this.
    – LRK9
    Commented Oct 25, 2016 at 15:50
  • For any questions like that the community will look for what exactly have you tried ?If you can throw some code and make a question will be happy to help through . Commented Oct 25, 2016 at 15:52
  • Here is a metadata API guide and you can use Javascript to invoke the API developer.salesforce.com/docs/atlas.en-us.api_meta.meta/… Commented Oct 25, 2016 at 15:53

You must log in to answer this question.

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