Hello,
I have a question about a process flow which I made specifically for an integration with another application, say “App B”.
The process flow makes sure to merge the correct record into the correct tables. There is some custom logic where checks are done whether to insert or to update the record. This is an atomic transaction.
We have a webhook configured in App B, which means that every update App B receives is immediately send to our Thinkwise application. Now it seems that App B is updated via an integration as well. Sometimes, this means that the same record in App B gets updated multiple times in rapid succession.
Our process flows is not able to handle this correctly. I get the following error:
Cannot insert duplicate key row in object “XXX”
Do you have any recommendations in order to solve this issue?
Will simply rewriting my check into a merge statement rather than the custom check help resolve the issue? The issue is that I have no easy way to test the issue in another environment at the moment.