Skip to main content
George Oster perguntou em #Apex
I have several Related Lists which are on the Page Layout for Account.  I would like to programatically add an additional Related List to the Page Layout for Account through Apex alone.  Is that possible?

 
4 respostas
  1. 24 de jan. de 2017, 20:58
    Hi George,

    There is a way to access metadata using the metadata api in salesforce. This post (http://salesforce.stackexchange.com/questions/18843/using-meta-data-api-in-apex) explores this a bit and you might find it useful. The response by Andrew Fawcett is great but there is no use restating it here.

    The code (wrapper class) they are refering to is the in the following github repo:

    https://github.com/financialforcedev/apex-mdapi

    Good luck and hope this helps!

    AM
0/9000