Paginating through lists Follow

Comments

8 comments

  • Avatar
    Arlene Salgado

    Hi, Charles
    How can I export less than 1000 records with the incremental ticket API??
    I've tried with something like this:
    https://example.zendesk.com/api/v2/exports/tickets.json?start_time=1405469030&per_page=100
    but doesn't works.

  • Avatar
    Dwight Bussman

    Hi Arlene,


    There's a few things going on here:



    1. I don't believe the incremental exports endpoint accepts the per_page parameter.



    2. It looks like you're trying to use /api/v2/exports/tickets, which is a different endpoint from the api/v2/incremental/tickets.json used in this article. 

  • Avatar
    Kashish Dup

    According to article, the maximum record I can get during ticket's incremental export is 1000. What about other incremental export objects?

  • Avatar
    Dwight Bussman

    Hi Kashish,

    Per the incremental exports pagination documentation, all incremental exports pages should return up to 1000 objects.

    "When paginating through an incremental export result set, use the count property to determine when to stop. These endpoints return up to 1000 items per page. If count is less than 1000, then stop paginating. Otherwise, use the next_page URL to get the next page of results."

  • Avatar
    Edward Ionescu (Edited )

    Hi,

    Incremental tickets export doesn't work as expected. You can't export new tickets, only the updated tickets. You can't reach all the pages, for some reason - probably the last page is below 1000 records thus not showing? According to the incremental export, I have no updates on tickets since 05.11 which is impossible. 

  • Avatar
    Bryan Flynn

    Hi Edward,

    If you're still having this issue, please open a ticket at support@zendesk.com, so we can look at your account in more detail. You should be getting all your tickets assuming the start time that's passed into the API is correct. This is true across other incremental/bulk export type APIs mentioned in this article as well:

    What is the recommended method to regularly export Zendesk Support data?

  • Avatar
    Edward Ionescu (Edited )

    Hi Brian,

    Thank you very much, already did what you suggested. It works fine now, I should have taken into account the "end_time" value and use it as the next start time. I was using a custom start time and that was causing the issue. 

  • Avatar
    Bryan Flynn

    That's good to know you got things working. Thanks for sharing that back here Edward.

Please sign in to leave a comment.

Powered by Zendesk