texei-sfdx-plugin
texei-sfdx-plugin copied to clipboard
texei:data:export should not export direct AccountContactRelation
When exporting AccountContactRelation
, records being IsDirect = true
shouldn't be exported as it's automatically created via the Contact.AccountId
field.
Trying to import the exported file will fail because of duplicate value:
Error importing record AccountContactRelationshipRef1: DUPLICATE_VALUE-This contact already has a relationship with this account.(ContactId)
.
Today the workaround is to export data via a data plan excluding the direct relations:
{
"name": "AccountContactRelation",
"filters": "IsDirect = false"
}