Below is the syntax for all types of components that we can retrieve. Once the Package.xml is created, you can either use Workbench, VS Code, or ANT Tool to fetch the components. Remember that inside members tag, we have to provide API Name of the component. If you want to retrieve all the Apex Classes, just provide * in members tag which will retrieve all the Apex Classes. Add multiple members tag to retrieve multiple Apex Classes. We have to add members tag to provide the name of the Apex Class that we want to retrieve. Inside the name tag, we need to provide the API name of Component like ApexClass. To provide Component Type to retrieve, we need to follow below syntax inside Package attribute: Then in the Package attribute, we have to add code to retrieve the components. Here, the version in the Package tag is used to provide the Version for the Package.xml file. The first thing that we need to do is create a Package.xml file and add the required XML code like below: Hence, this post will help you to retrieve any component using the Package.xml file from Salesforce Org. There are different types of components in Salesforce and it is difficult to remember the API names and Syntax of all the components required to retrieve using Package.xml. In this post, we will see how can we retrieve components using the Package.xml file from Salesforce Org.
0 Comments
Leave a Reply. |