Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
WalTig
Frequent Visitor

Facing problems with continuationUri for activityEventEntities (Admin - Get Activity Events)

I'm working with several Power BI API's and they all give me results. I don't use any SDK. I simply perform a HttpWebRequest in C# like this:

HttpWebRequest request;
request = System.Net.HttpWebRequest.CreateHttp(uri);
request.KeepAlive = true;
request.Method = "GET";
request.ContentLength = 0;
request.Headers.Add("Authorization", String.Format("Bearer {0}", AccessToken));

Never a problem with that. However . . . I cannot get the API working in case of the continuationUri for activityEventEntities. 

I tried two methods: using the continuationUri and getting an AccessToken by creating a new Azure AD Authentication Library (ADAL) context. This is the normal procedure for avery API. In this case: that gives me a 403-error. This I can understand somehow. There is not only a continuationUri. There is also a continuationToken. Not for nothing I assume. So, I tried the second method.

The second method is calling the API using both the continuationUri and the continuationToken. So I don't ask or create an access token myself. Only there is no difference in the result. Again a 403-error. 

 

My first request is giving good result (including a continuationUri and continuationToken):

Uri = https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2020-02-23T00:00:00.000Z'&end...'
Token = eyJ0eXAiOiJKV1{etc}

 

My continuation request (using the received continuationUri and continuationToken) is giving 403 result:

Uri = https://wabi-north-europe-c-primary-redirect.analysis.windows.net/v1.0/myorg/admin/activityevents?co...}'
Token = LDIwMjAtMDItM{etc}

Now my question is: is there anyone who got this API (using the continuationUri for activityEventEntities) working ? If so: how ? What am I doing wrong?

2 REPLIES 2
Anonymous
Not applicable

Hi there,

 

Do you get this to work?

Have been trying to use the token but keep getting an error saying is expecting a literal type even if I enclose the token in single quotes.

 

Cheers,

liljath

Hi,

 

Maybe these observations will help you out:
https://community.powerbi.com/t5/Developer/Get-Activity-Events-API-doesn-t-return-activities-when/td...

Best regards, Walter

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.