We have built a user interface system which is integrated with Zendesk. We have written code as per this documentation , which creates a case in Zendesk or updates the case as per user interaction on our UI.
However, when a zendesk agent updates the case on Zendesk, we are not sure how our user interface gets updated.
For example - If Zendesk agent replies to a case from zendesk interface, we need to show that update in our UI.
Or if zendesk agent closes the case, then we should be notified to show closure on our User interface.
Polling all the zendesk cases at a very small interval, to find out delta between our records and zendesk records is a very inefficient way and network throtlling too.
Please suggest.
How about you create a Webhook in Zendesk:
https://support.zendesk.com/hc/en-us/articles/4408839108378-Creating-webhooks-to-interact-with-third-party-systems
Then add the webhook to a trigger, that fires whenever a ticket is updated.
https://support.zendesk.com/hc/en-us/articles/4408843730458-Triggers-resources
That way you do not have to do time-based polling and can simply push changes to your system.