There are three main ways that metadata can be used in Salesforce Apex to complete the necessary processes: by importing the metadata into Salesforce, by updating it in the product’s interface, or by using the Salesforce metadata API.
Salesforce Metadata API explains how salesforce.com and Force.com development artifacts are structured. With Force.com, you only need to code as opposed to the customary development process of code-compile-package-deploy.
What is Salesforce Metadata?You may assume that metadata and data are the same – they are not.
Hard-coded applications are a thing of the past – configuration is the flair of the season.
Organisations need flexible applications that can be tailored to what their business requires, without needing high-level programming skills. Metadata is what transforms Salesforce from a simple database into an entire platform – that’s why Salesforce metadata is so powerful.
Salesforce Metadata API is used to manage our application customisation programatically as well as export and migrate meta data. Force.com Migration tools uses Metadata API to retrieve and modify our organisation structure. Salesforce.com has made this asynchronous API available to users so that you can build your own client applications on top of it.