Is it possible to get usage data on macros, triggers, and automations?

Have more questions? Submit a request

11 Comments

  • Felicia Cantua

    Is it possible to get macro usage extending beyond the 30 day limit?

    0
  • Nicole - Community Manager

    Hi Felicia, 

    The best way to do this would be to have a unique tag added by the macro, and then you can pull reports on that tag. 

    More on that can be found in this article: 

    Insights tag reporting: Reporting on tickets with one or more tags (Professional and Enterprise) 

    0
  • Pedro Rodrigues

    Hello, when I pull data for the last 30d using following the URL above, I only get max 100 results for both macros and triggers.

    I wonder if this is a limit, or just a coincidence? If the former, is there a workaround to obtain usage for the entirety of the business rules?

    0
  • Tiann Nelson-Luck

    Hi Pedro,

    That behavior is expected! Our API pagination only returns 100 results per page for most endpoints. 

    When the response exceeds the per-page maximum, you can paginate through the records by incrementing the page parameter. Example: page=3. List results include next_page and previous_page URLs in the response body for easier navigation.

    Thank you for reaching out! 

    1
  • Pedro Rodrigues

    Perfect! Thanks a lot, Tiann.

    0
  • Michael Fischer

    This would be a great thing to have - even at the Insight level.  For example I am attempting to calculate ticket abandonment rate per year and there is no way I can remotely begin.  I have an automation that closes tickets after 10 days of no client response.  I wanted to count how many times that fired off per calendar year.  Can't do it with Zendesk, it seems.

    0
  • Graeme Carmichael

    Michael 

    As part of the automation’s action, add a unique tag to the ticket such as no_repsonse. You can then search for tickets in Support with that tag or create an Insights report. 

    0
  • Alexander R

    Back to Nicole/Pedro's comments, how do I incorporate multiple pages exactly in the URL? I have https://subdomain.zendesk.com/api/v2/macros.json?page=5include=usage_1h,usage_24h,usage_7d

     

    I just don't know where to put the page part. Thank you!

    1
  • Kelsey H

    Hey Alexander, 

    What are you using to pull this data? I ended up using python and can share some code if you'd like about pagination. If you do go the python route I strongly suggest Zenpy (http://docs.facetoe.com.au/)

    0
  • Russell Dunn

    I can't believe that Zendeks stock answer to this sort of question is always "add a tag". It's such a poor level of customer support. Why not just allow us to access all our data through the API? We're paying you for it!

    0
  • Brett - Community Manager

    Hey Russel,

    I can promise you that this is not a stock answer and currently using tags is the best way to capture macro usage at this time. I'll be sure to pass your feedback to the appropriate team and greatly appreciate you taking the time to share this with us.

    If you do experience any issues tracking macro usage with the method mentioned above please let us know and we'll do whatever we can to help on our end.

    Thanks!

    0

Please sign in to leave a comment.

Powered by Zendesk