Duplicates Created Because First Request Doesn't Complete Fast Enough
Whenever a customer visits the cart and checkout page on our website, I have set up workflows to create or update a deal in HubSpot.
However, there's a particular scenario that's causing headaches: when a customer proceeds to checkout very quickly after visiting the cart page, it results in the creation of a duplicate deal. This happens because the first request to create a deal hasn't completed, and the search API the looks for a deal to decide if it should create one or update one doesn't find the one created from visiting the cart page, so it creates one.
Duplicates Created Because First Request Doesn't Complete Fast Enough
Hi, @eibach-cv👋 Thanks for the interesting question. It sounds like some form of race condition is happening. Hey @himanshurauthan, have you run into anything similar in your recent projects?