# Deal duplicates

**URL:** <https://community.hubspot.com/t/deal-duplicates/68375>\
**Category:** APIs & Integrations\
**Created:** [November 2, 2022, 10:50am UTC](https://community.hubspot.com/t/deal-duplicates/68375 "2022-11-02T10:50:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![renux](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@renux](https://community.hubspot.com/u/renux)\
**Post date:** [November 2, 2022, 10:50am UTC](https://community.hubspot.com/t/deal-duplicates/68375/1 "2022-11-02T10:50:37Z")

</div>

I am making the migration of the API integration to private app.

Also, I am removing the ecommerce bridge integration because of the sunsetting at 1th december.

The issue is that I am making a lot of requests to the API to create or update a Deal.

The perfect workflow is:

- create

- update

- update

…

But when the first request is creating the deal, the second one is checking if the deal exist but this doesn’t find any deal, so it creates a new one and in the end, I have a lot of duplicates.

With the ecommerce bridge plugin we sent the field changeAt and the plugin internally orquestate the request.

What can I do?

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [November 3, 2022, 2:48am UTC](https://community.hubspot.com/t/deal-duplicates/68375/2 "2022-11-03T02:48:36Z")

</div>

Hi there,

Help me to understand it further, are you saying you have 3 seperate workflows (to create, update, update) or do you mean you have 3 actions in one workflow? How are you doing the enrolment triggers for each of them?

Without the understanding of the ecomm bridge plugin and the full context of your blocker, I can only suggest a “creative” method to solve the sequencing issue.

What if you create a custom property (for deals) to use as a flag. Then on your first workflow, at the last action you use “Set Property Value” to fix a value for deals that go through this flow. In your second workflow you can then use deal based enrolment trigger value as “Is Known”. Likewise then set the value to another so that it can trigger your third workflow.

Cheers

WL
