Package.xml samples to retrieve Salesforce metadata

Here we will go through how we can create a package.xml to retrieve metadata from Salesforce. Common metadata type samples are also included.

Metadata type names can be tricky and it usually difficult to create a package.xml without some googling. Here we provide a sample package.xml with examples of common types.

Once you have a package.xml, it is relatively easy to retrieve metadata using it and deploy to other environments. There are multiple options for that- Force.com Migration tool/ANT (Outdated), SFDX (Recommended)- How to retrieve code using SFDX CLI.

Package.xml sample with common metadata types

When you are creating package.xml, copy below simple package.xml file as a starting point

Now copy relevant types from below xml and add to your package.xml. Then go to your org and add members tags for the elements you want to retrieve


2 comments:

  1. Useful for package.xml creation. Metadata coverage report also can be used to get some idea about metadata type names. https://developer.salesforce.com/docs/metadata-coverage/49

    ReplyDelete
  2. Crypto Trading, according to current research and inferences drawn from other compulsive gambling activities, can lead to mental health symptoms such as stress, anxiety, sadness, and mania.

    You should join crypto quantum leap online course otherwise Crypto Trading risky

    Trading in Bitcoin can result in significant profits, but it is not without danger. In fact, the price of Bitcoin fluctuates so much that even experienced traders can easily get whipsawed and lose a lot of money. As a result, trading Bitcoin incorrectly is perhaps the simplest way to lose money in Bitcoin.

    But anyway, investing is always a win-lose, no matter where you invest. I still believe in this market. Also, you can invest in different ways which, for example, NFTs, you can even generate NFTs and sell if you are a creator with FANDOMS. Conversely, the platform also allows you to buy tokens (FANBITS) and support your idols. Mutual benefits, not just traditional crypto trading.

    ReplyDelete