Activity › Forums › Salesforce® Discussions › How to Query Metadata Components By using SOQL in Salesforce ? Salesforce® Discussions How to Query Metadata Components By using SOQL in Salesforce ? Posted by Kirandeep on June 29, 2020 at 3:08 PM How to Query Metadata Components By using SOQL in Salesforce ? Aditya replied 5 years, 11 months ago 2 Members · 1 Reply 1 Reply Aditya Member June 29, 2020 at 3:23 PM @Rocks_SFDC You need to use tooling API for that. Here is the documentation: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/ Andrew wrote an APEX wrapper to it which is readily available to use here: https://github.com/afawcett/apex-toolingapi Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me