I'm integrating Espo with an external application. The external app makes API requests to update info in Espo, and Espo sends webhooks to update info in the external system. The problem is, this could create a loop, whereby each system continuously updates the other. Therefore, I'm wondering what's the best way to deal with this. It would be great if you could send some special header (X-No-Webhook) when making an API request, to disable the webhook for that request.
Avoid triggering webhook
Collapse
X
-
> X-No-Webhook
This is not good, webhook processing should not be controlled by a data sender.
You can create a custom boolean field. Set it to true when send from the external app. When you receive data in hook, skip the record if true.If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.
Comment