Hi,
Here is my following use-case. In my website -
- I'm using Zendesk APIs to create tickets or add comments to an existing ticket.
- I'm using Zendesk webhooks to listen to new comments added to that ticket, and call my website url.
One thing I noticed was that, when I create a ticket, it automatically triggers the webhook (which it is supposed to). This causes loops between my website and Zendesk.
Q1. Is there some way that I can filter it out? Is there a trigger condition I'm missing? I want exclude all webhook calls whose source is my API (there can be other APIs integrated in that account, and if they add a comment in the ticket, I want the webhook to hit my website).
Q2. If it is not possible to prevent the webhook from being called, that's fine. I'll need to update the logic on my website. So, I was thinking of adding an external-id to every comment created from my API, so that if the webhook sends me a comment with that external-id I can drop processing that webhook. But it looks like I can add external-ids to only tickets and not comments. Is there anything I can do about that?