Skip to main content

Hello All,

How can I retrieve specific custom metadata records from an org.

I use this syntax for specifc fields

sfdx force:source:retrieve -m CustomField:Object.CustomField__c

But what is the syntax for a custom metadata record?

Thanks,

P
5 answers
  1. Jul 27, 2020, 8:35 AM
    Hi Phuc, 

    I recommend building a Package.xml Manifest and identifying and listing the metadata required to be pulled. You can then run the command

     

    sfdx force:source:retrieve -u DevHub -x ./package.xml

    Hi Phuc, I recommend building a Package.xml Manifest and identifying and listing the metadata required to be pulled. You can then run the command sfdx force:source:retrieve -u DevHub -x ./package.

    To learn more, see this Trailhead Module 

    If you find the information provided above helpful, please mark this answer as Best. It may help others in the community. Thank You!

    Anudeep 
0/9000