Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about contacts dedupe #31

Closed
5AMsan opened this issue Jun 15, 2023 · 1 comment
Closed

Question about contacts dedupe #31

5AMsan opened this issue Jun 15, 2023 · 1 comment

Comments

@5AMsan
Copy link

5AMsan commented Jun 15, 2023

In https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/dedupe_contact.js, seaching with filter

[{
  propertyName: DEDUPE_PROPERTY,
  operator: 'EQ',
  value: dedupePropValue
}]

should return 2 contacts if we have dups, but a test says

if (idsToMerge.length > 1) {
  console.log(`Found multiple potential contact IDs ${idsToMerge.join(', ')} to merge`);
  throw new Error("Ambiguous merge; more than one matching contact");
}

so there can't be a deduplication, right ?

@5AMsan
Copy link
Author

5AMsan commented Jun 15, 2023

My bad, must learn to read.

@5AMsan 5AMsan closed this as completed Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant