Skip to main content

Hi Zapier Community,

I’m trying to build a Zap that retrieves the ticket counts for ten different Zendesk Views, but I want to avoid consuming a Zap task for each individual view. I already created a webhook to pull the count of a single view using Zendesk’s API for views, but is it possible to pull multiple view counts in one API call?

Any pointers, code snippets, or best practices would be hugely appreciated!

Thanks in advance for your help,
Awni

Hi ​@awni 

You would have to use a custom Code step or you can try using a Custom Action if that is available.

Code: https://zapier.com/apps/code/integrations#help

Custom Action: https://help.zapier.com/hc/en-us/articles/16276574838925-Custom-Actions-in-Zapier


Hi Awni,

Great question! Unfortunately, Zendesk’s API doesn't provide a direct way to retrieve multiple view counts in a single API call — each view count must be fetched individually using the /api/v2/views/{id}/count.json endpoint. However, to avoid consuming Zap tasks for each view, a good workaround is to use a single Code step (JavaScript in Zapier) or a Webhooks step that triggers a custom script hosted externally (e.g., on a server or using a service like AWS Lambda or Google Cloud Functions).