Metadata API in Salesforce
Chapter Topics
- APIs in Salesforce
- Need of API in Salesforce
- Languages Used in creating APIs
- How Communication Happens in APIs
- Types of APIs in Salesforce
- REST API Part 1
- REST API Part 2
- REST API Part 3
- REST API Part 4
- REST API Part 5
- REST API Part 6
- REST API Part 7
- REST API Part 8
- REST API Part 9
- SOAP API Part 1
- SOAP API Part 2
- SOAP API Part 3
- SOAP API Part 4
- SOAP API Part 5
- Metadata API in Salesforce
What Is A Metadata?
Data of data is termed “Metadata”. In Salesforce, all the objects, fields, tabs, apps, etc are Metadata.
What Is Metadata APIs In Salesforce?
To access the metadata in Salesforce, we need to call metadata API. It allows us to retrieve and deploy salesforce metadata from one org to another org using a configuration file.
How Metadata API works?
It works similarly to other APIs, but the only difference is that it is used to retrieve and deploy data from/to salesforce org.
How To Call Metadata API?
Here below are the example steps to call metadata API:
- Login to https://packagebuilder.herokuapp.com/, through your sandbox or production org.
- Select the component types, you want to install.
- Copy the code and save it to the package.xml file.
- Login to the salesforce workbench: https://workbench.developerforce.com/login.php
- In Migration, Click on retrieve.
- Then upload the package.xml file.
- Click next.
You can follow similar steps to deploy metadata(which have been retrieved) to other org.

Join our newsletter: Get daily update on Salesforce career insights & news!
Join Now!
Need more support?
Get a head start with our FREE study notes!
Learn more and get all the answers you need at zero cost. Improve your skills using our detailed notes prepared by industry experts to help you excel.