Forum Discussion
Admin - Get Activity Events - Continuation Token was the same for different calls
I'm following the documentation here Admin - Get Activity Events - REST API (Power BI Power BI REST APIs) | Microsoft Learn to get list of activities for my PowerBI workspace. Followed everything, and everything works, except for the continuationToken/Uri part.
The first call "https://wabi-north-europe-k-primary-redirect.analysis.windows.net/v1.0/myorg/admin/activityevents?startDateTime='2025-08-19T00:00:00.000Z&endDateTime='2025-08-19T23:59:59.999Z" returned one record and a continuation Token/Uri (lets say it was 'A') which i then used for the next call. The next call I did was "https://wabi-north-europe-k-primary-redirect.analysis.windows.net/v1.0/myorg/admin/activityevents?continuationToken='A'" following the continuationUri from the previous call. This one gave me back 12 records and the SAME continuation Token and Uri (so still continuationToken = 'A').
Feels like this is a bug. It's basically giving me the same continuationUri that I used to get that exact response.
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.
7 Replies
- vivien57Super User
Hello quyendang ,
I must admit I don't understand your problem.
However, depending on the activity you want to see, you have this, which exists and is more plug-and-play.
https://learn.microsoft.com/en-us/fabric/fundamentals/enable-workspace-monitoring
I don't know if you knew about it (Works if you have a capacity).
Don't hesitate to give me a kudo if my answer helps you 😉
Have a nice day,
Vivien - ibarrauSuper User
Hi. I have tried and it looks like it's working properly. Check carefully if the token involved has all the same characters or think if it could have finished there. There are not requests with regions on the name in my mind. You can get the values from continuationUri and look like "https://api.powerbi.com/v1.0/myorg/admin/activityevents?continuationToken='%2BRID%$4Z244SAKlHY7YQAAAAAAAAAA%3D%3D%23RT%3A1%23TRC%3A5%23FPC%3AARAAAAAAAAAAFwAAAAAAAAA%3D'"
As an alternative, if you are using python, you can use SimplePBI library that would solve it for you. It has methods for the request that are solving the continuation token logic by returning the whole frame.
I hope that helps,
- Shahid12523Community Champion
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.
- quyendangNew Member
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-achippaCommunity 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