1

Is it possible get source code of Apex class/trigger through REST or any other APIs?

1
  • Yes it is.......Thats how the 3rd party IDE and tools do it
    – Eric
    Commented Nov 9, 2015 at 0:25

2 Answers 2

2

It is possible to do so with the Tooling API. Read more in the documentation.

Also here are some examples that show how to manipulate the object.

-1
SELECT Id
  ,Body
  ,Name
  ,NamespacePrefix
  ,Status 
FROM ApexClass
WHERE NamespacePrefix = NULL

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .