Skip to main content
Phuc Nguyen (Trex) a posé une question dans #Apex

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 réponses
  1. 27 juil. 2020, 08:35
    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