Forum Discussion
rafal_walisko
Helper I
3 years agoReport views are different in Portal and from the Rest API
Hello,
I've used powerbi rest api
https://api.powerbi.com/v1.0/myorg/admin/activityevents + &$filter=Activity eq 'viewreport' to obtain all the views from last 30 days.
It worked fine but I see the number of views is different than the number of views in Powerbi Service. Can someone explain why it is?
7 Replies
- watts_jim
Helper II
Are you refreshing them both at the same time ?
- rafal_walisko
Helper I
yes, in the workspace I see above 400 views for one report
Where from the API I got only 2 views event's in last 30 days.
Thats a huge difference.
- sergeikhamNew Member
Hey rafal_walisko,
I faced the same problem yesterday.
The solution for me was to create a while loop checking whether the continuationUri is Null. If not, then send a get request to the continuationUri and get activityEventEntities.
Please tell me if it helps you.
- watts_jim
Helper II
Same user account ?
- rafal_walisko
Helper I
yes, Im checking it as a Powerbi Admin.
- watts_jim
Helper II
I meant the account that is running the commands in the API - I'm presuming you go through an authentication process though