Announcement

Collapse
No announcement yet.

Avoid triggering webhook

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Avoid triggering webhook

    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.

  • #2
    > 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.

    Comment

    Working...
    X