Monday, November 18, 2019

How to deploy custom metadata type using ANT tool in Salesforce

Use the below package.xml to retrieve/deploy the custom metadata type using ANT tool
Custom metadata type is like custom object but you have use __mdt
Ex: custommetdatatypename__mdt

package.xml
<!-- Custom Metadata Type -->  
<types>  
    <members>CustomMetadataAPIname__mdt</members>  
    <name>CustomObject</name>  
</types>  

<!-- Custom Metadata Type records/data-->  
<types>  
    <members>CustomMetadata__mdt.RecordName</members>  
    <name>CustomMetadata</name>  
</types>  
 


No comments:

Post a Comment