I want to retrieve API names of all the components from Salesforce Org. I used Force.com Migration tool(ANT) to retrieve Component names but I am getting the label of all the components.

For Ex. ComponentType = ApexClass

Label = Apex Object Name

Expected outcome
API Name = Apex_Object_Name__C

Is there any way other than Migration tool such as Tooling API?

Thank You.

Regards, Amit Patil

  • Apex Classes don't have the __c suffix. That is only for custom objects and fields. The Tooling API does expose ApexClass. If you SOQL the NamespacePrefix and Name from there you will have the details you need. – Daniel Ballinger Apr 11 '17 at 23:19
  • @DanielBallinger Thanks for the reply. Apex Class is just an example, but I want to retrieve all the components with API names such as PageLayout, CustomObject, ListView, VisualforcePage etc. – amit patil Apr 12 '17 at 4:50

Your Answer

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

Browse other questions tagged or ask your own question.