Skip to main content
George Oster 님이 #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개
  1. 2017년 1월 24일 오후 8: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