6 comments

  1. Thanks Jitendra. You ran into the same issues I had, and you explained them clearly. Note to others:

    In the CustomObject, definition, the Custom Metadata Type takes the __mdt suffix. Like this: Data_Import_Mapping__mdt

    But in the CustomMetaData definition, there are no suffixes, not even on the record names. No __c, for instance. Correct is:
    Data_Import_Mapping.Person_Title

    Baird

    1. Thank you Jitendra. And one more point – When u add custom metadata Object to package, it will include all the standard and custom fields. If you have records created under manage options, add those values under custommeta data tag to package. As baird said those values under manage options, will have have any suffixes.

      Thank you @jitendra it was helpful.

  2. How do you retrieve all records of a particular custom metadata say ABC__mdt? I tried

    CustomMetadata
    *

    CustomObject
    ABC__mdt
    45.0

    but it just retrieved records from all custom metadata types

    1. It retrieves all records with CustomMetadata
      ABD.*, however it also shows an error message : Entity of type ‘CustomMetadata’ named ‘ABC.*’ cannot be found. Any idea why?

        1. CustomMetaDataType.recordname
          CustomMetadata

          this should be structure to deploy metadata record.
          Earlier i was using
          CustomMetaDataType__mdt.recordname
          So the __mdt was causing the issue

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.