+ Start a Discussion
Diwakar G 7Diwakar G 7 

API for fetching metadata types and components

Hi,

Please provide the API for fetching metadata types and components. 

Thanks and Regards,
Diwakar G
Raj VakatiRaj Vakati
You need to use the tooling API and metadata api together to fetch  the  both metadata and component ... 

Refer this link 

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/intro_rest_resources.htm
Pruthiviraj GanePruthiviraj Gane
Hi

If you are trying access the metadata of salesforce outside of Salesforce environment :
Can u tell us on where you are trying to fetch metadata so we can you better.
Diwakar G 7Diwakar G 7
Hi,
I want to access the below details using Rest API. Not only role but also different component types also.
User-added image
Thanks and Regards,
DIwakar G