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 Nov 9 '15 at 0:25
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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