How to deploy custom metadata type using Apache ANT tool in Salesforce?

How to deploy custom metadata type using Apache ANT tool in Salesforce?

Use the below package.xml to deploy custom metadata type using Apache ANT tool in Salesforce.

package.xml:

  1. <!– Custom Metadata Type Data –>  
  2. <types>  
  3.     <members>CustomMetadata__mdt.RecordName</members>  
  4.     <name>CustomMetadata</name>  
  5. </types>  
  6.   
  7. <!– Custom Metadata Type –>  
  8. <types>  
  9.     <members>CustomMetadata</members>  
  10.     <name>CustomObject</name>  
  11. </types>  

Leave a Reply