texei-sfdx-plugin icon indicating copy to clipboard operation
texei-sfdx-plugin copied to clipboard

texei:data:export should not export direct AccountContactRelation

Open FabienTaillon opened this issue 3 years ago • 0 comments

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"
}

FabienTaillon avatar May 21 '21 13:05 FabienTaillon