3

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:

https://success.salesforce.com/answers?id=90630000000h3AeAAI

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?

4

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 Oct 25 '16 at 15:47
  • You have to put that as another question :) – Mohith Shrivastava Oct 25 '16 at 15:49
  • But that was the question, I'm looking for how to do this. – LRK9 Oct 25 '16 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 . – Mohith Shrivastava Oct 25 '16 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/… – Mohith Shrivastava Oct 25 '16 at 15:53

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.