Is it possible to somehow retrieve all metadata for a single custom metadata type via ant or sfdx mdapi ?

I've tried this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">

but it doesn't work...

I know I can get EVERYTHING with <members>*</members> but that's not really helpful...


This is currently not possible(As of summer 2019 release).The reason for that is salesforce does not recognize custom metadata records are dependent on the custom metadata Object.

I tried to create an unmanaged package container and add custom metadata object and see if there is any dependency that it auto adds records.Hence I think this should be opened on Ideaexchange as product enhancement.

  • i thought I had done a similar thing with changeset and it did pick them up as dependent, but I could be mistaken – NSjonas May 18 '19 at 2:15
  • I doubt it picks up if you add custom metadata object and then check dependency . – Mohith Shrivastava May 18 '19 at 2:16
  • 1
    Agree .We should create an idea and socialize on Twitter to get traction – Mohith Shrivastava May 18 '19 at 3:18
  • 2
    Not much changed since last time :P salesforce.stackexchange.com/questions/137778/… – Vinod Rondla May 18 '19 at 5:49
  • 1
    I just realized the DUPLICATE is my question as well... LOL how embarrassing – NSjonas May 20 '19 at 21:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.