[FEATURE REQUEST] - Extract Unique Records by External ID #931
Labels
completed
The issue was successfully resolved/Feature is completed
feature-request
New feature request or a change in the existing functionality
not-supported
Sometimes, we may be working with an org that has poor data quality, primarily, duplicate records. Take the below example of three accounts, each with the same name. Importantly, there is no other writeable fields that can be used to distinguish one from another.
We may use this to seed data with production data, but disregard duplicated records.
Take the below example of three accounts with the same name.
If I run an Upsert using externalId : Name from this environment to a sandbox, the three records migrate across. However, upon running the same command again, the result is five records.
I believe this is because at the point of the second run, the source and target is matching against one of the accounts, but not the other two. So it updates one record, and creates two others, which at least seems to be true in some form from the isolated test I ran below.
It would be helpful to only extract unique values based on the external ID supplied, so that only one record is migrated across and all child records use that single key to relate to. E.g 3 accounts with 1 contact each, would result in the contacts all consolidating under the one unique account upon migration.
My line of thinking was a parameter against ScriptObject that basicallly retrieves the first hit of each key and disregards the rest when querying.
That being said Im unsure if my use case is common enough to warrant this feature request, please consider it though! 🙂
The text was updated successfully, but these errors were encountered: