Ability to update Metadata from Apex (Apex Metadata API) - Ideas - Salesforce Trailblazer Community
Trailblazer Community

All Ideas

Idea Details

Post an Idea
11,010  Points
Idea has been posted. Give it an upvote or downvote.

Ability to update Metadata from Apex (Apex Metadata API)

Development (Apex, LWC & VF)

The platform is becoming more complex and the setup and configuration is growing as a result. The ability to create tools and products that help streamline, standardise or templatize, certain configurations is becoming more compelling. Effiectively creating tools to extend the Setup menu is one use case. Another is to allow ISV's to develop UI's or post install scripts to update subscriber editable items like layouts and picklists. 

Apex Describe provides some read only support, along with the ability to query certain objects, like ApexClass, ApexPage etc. It would be good to have an API simalar to that of the existing Metadata API available natively in Apex. There is an open source wrapper around this Salesforce SOAP API, which has become quite popular with developers wanting to develop solutions such as those above. This library however is subject to HTTP callout and requirements around needing pre-configured Remote Site settings (for Saleforce servers), so is not ideal.

Please consider making a Apex 'true to the core' API for Metadata availabe.

Merge Idea · Flag

Latest Comment from Salesforce

  • Vladimir Gerasimov - 9 months ago


    As Aaron previously mentioned we have released Apex Metadata API in Spring '17:

    At this point it supports only limited amount of metadata types and we understand that it doesn't satisfy this idea completely. For this reason, I would like to keep this idea open. While we are not currently working on enchancing this API further, I'm sure we will come to this in the future.

    Thanks everyone for your comments and votes!
  • Upvotes
  • Downvotes



from AppExchange

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.