-6

What is the simplest & easiest way available to access the Metadata API from APEX (accessing the current Org) ?

closed as too broad by Renato Oliveira, battery.cord, Tushar Sharma, Mohith Shrivastava, Vijay Ganji May 30 at 10:40

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Downvote for the most blatant lack of research I have seen on this site in quite some time. – Adrian Larson Mar 20 '17 at 14:02
  • -1 from me for lack of research (given Adrian's answer below) – Derek F Mar 20 '17 at 14:02
  • 2
    The words simplest and/or easiest are also red flags for an opinionated question. – zgc7009 Mar 20 '17 at 18:09
  • @zgc7009 could you provide some refs to that, I am quite new to stack, I'll be glad to learn some good practices for writing questions, thanks – benahm Mar 20 '17 at 20:27
  • @benahm You should liberally browse the help center, scroll through the tour, and read How to Ask, for starters. – Adrian Larson Mar 20 '17 at 22:57
4

Salesforce have released direct support from Apex with Summer 17. Refer to: https://developer.salesforce.com/blogs/engineering/2017/05/introducing-apex-metadata-api.html

4

If you had simply searched google for your very question title, you would have found the answer:

Apex Wrapper Salesforce Metadata API

Deploy to Salesforce

Documentation

In addition to the documentation in this README, the following blogs also cover the library.

This API mirrors as much as possible the API types and operations described in the standard documentation. The behaviour and functionality provided is also as described in the Salesforce documentation, in terms of what metadata is available and accessable via the specific operations.

Not the answer you're looking for? Browse other questions tagged or ask your own question.