• Oscar Iuliano 19
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

I am trying alternatives to export data and import data using salesforce cli and came across a scenario where I was able to export the custom metadata records but when I try to import the same to another scratch org I am finding CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY  entity type cannot be inserted.

{
    "records": [
        {
            "attributes": {
                "type": "TR1__mapping__mdt",
                "referenceId": "TR1__mapping__mdtRef1"
            },
            "DeveloperName": "LastName_DefaultValue",
            "Label": "LastName DefaultValue",
            "Language": "en_US",
            "MasterLabel": "LastName DefaultValue",
            "QualifiedApiName": "LastName_DefaultValue",
            "TR1__Def_Value__c": "UNKNOWN",
            "TR1__Field_API__c": "LastName",
            "TR1__Node__c": "Contact"
        }
]
}
I see that salesforce allows records deployments with ANT but was curious to know why they allowed export feature but import is not working using salesforce cli commands.

Hello all , 
I want to insert bulk records in custom metadata type , but except using custom metadataloader because i dont want any related contains like apex class , triggers etc after uninstalling or deleting custom metadata loader .... Help me on this ...
Thanks in advanced ...