Forum Discussion
Admin - Get Activity Events - Continuation Token was the same for different calls
- 1 year ago
This isn’t a bug — it’s expected with the Admin – Get Activity Events API.
The same continuation token can appear across multiple calls if there are no more pages left.
You should stop calling when the API returns the same continuationToken/URI again, as that means you’ve reached the end of results.
Only call the continuation URI until it changes; repeating it will just re-fetch the last page.
So: process records, check if continuationToken is new → if not, you’re done.
This isn’t a bug — it’s expected with the Admin – Get Activity Events API.
The same continuation token can appear across multiple calls if there are no more pages left.
You should stop calling when the API returns the same continuationToken/URI again, as that means you’ve reached the end of results.
Only call the continuation URI until it changes; repeating it will just re-fetch the last page.
So: process records, check if continuationToken is new → if not, you’re done.
Hi Shahid, thank you for the information! I'm a bit doubtful, since the LastResultSet of the second response is False even though the continuationToken and continuationUri is the same (as the first response). Also the data i receive is for sure not completed.
- v-achippa1 year ago
Community Support
Hi quyendang,
Thank you for reaching out to Microsoft Fabric Community.
Thank you vivien57, ibarrau and Shahid12523 for the prompt response.
The Activity Events API requires you to always call the exact continuationUri returned in the response like without rebuilding or re-encoding the token. So please continue calling that URI until the response shows lastResultSet = true or the continuationUri is null. If you rebuild the URL then we can see the same token repeating with incomplete data. So using the continuationUri exactly will return the full result set.
Thanks and regards,
Anjan Kumar Chippa
- v-achippa1 year ago
Community Support
Hi quyendang,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa
- v-achippa1 year ago
Community Support
Hi @quyendang,
We wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa