Toggl Track "Watch Tasks" limited to 50 results?

I am running the Toggl “Watch Tasks” trigger to pull updated/new tasks into a Google Sheet (screenshot of scenario above). I have similar (exactly the same) scenarios for Clients, Projects, and Time Entries that pull from the respective “Watch” triggers into different sheets in the same spreadsheet. They all work perfectly, except the Tasks one limits my results to 50 at a time. There are a couple hundred to fetch.

The limit is set to 2000 (see below), and I’ve allowed it to run multiple cycles at once too (still only gets 50 and stops). There’s no indication that the result is paginated, and it would be weird for just this one trigger to be paginated when no other is. There’s no mention of limits or pagination on the API documentation either.

This wouldn’t be a problem, except the way the “Watch” Triggers work, is it only gets new or updated records since the last time it was run, and so everything apart from the first 50 doesn’t get synced unless it gets touched again. Is this a limitation in the Make integration, in the Toggl API itself, or am I doing something wrong? Is there a way to force this to run for everything even once for an initial sync? I can set up the schedule so it never pulls more than 50 at once after that!

ETA: The “choose where to start” options do not seem to work for any of the Toggl triggers. The chosen option does not save and does not affect the returned bundles.

Seems like some sort of Pagination issue. How many bundles are coming from Toggl Track? You may have to do a separate Toggl Track Get Tasks module and specify by a date range if that is available. If that is not available you would have to do a Toggl Track API call.

You can read more about the API here: Tasks | Track Your Way

1 Like

This appears to be a bug then.

For quicker assistance with bugs and technical problems, you may want to contact support directly. They respond very quickly and update you frequently on the status of their investigation.

Hope you can share the resolution with us if you manage to solve this problem!

3 Likes

Support confirmed there IS a max returns in the Toggl API (I was looking at a different but similar API in their docs). They have it hardcoded to the Toggl default of 50. It should use the Limit parameter from the module, and they are looking into fixing the bug.

Support also helped me to work around it with an Iterator and “Call an API” modules, which was very nice of them! Highly recommend using them when needed!

3 Likes

Hello @Richard_Hensman :wave:

It’s great to hear that our support team gave you the info needed + a workaround on how to resolve this. Thank you very much for stepping back in here and sharing what you learned from the team for the benefit of the community :pray:

2 Likes