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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
bbbbbiiiii
Helper II
Helper II

Power BI Rest Admin API - Activity Log : How is it linked to a Dashboard

Hi,

 

I've obtain "Activity Log" data from the "Get Activity Events" Rest API. There is a ReportID in the data, which can be used to link to report data. But for Dashboard, there is no DashboardID in it. How can I find out which dashboard is viewed? Thks!

1 ACCEPTED SOLUTION

@bbbbbiiiii, Can you check your code, by default the API gives DashbordId

SivaMani_1-1642663092622.png

 

 

SivaMani_0-1642663057806.png

 

 

View solution in original post

5 REPLIES 5
bbbbbiiiii
Helper II
Helper II

Hi,

 

There is no DashboardID but there is a DashBoardName. One of the fields returned by the Get Activity Event is ItemName, it is the DashBoardName. But the problem is there are several dashboards with the same name in the workspace. So the DashBoardName can't be used. 

SivaMani
Resident Rockstar
Resident Rockstar

@bbbbbiiiii, It does provide you DashboardId and DashboardName for the 'ViewDashboard' activity. 

Hi Siva,

 

There is no DashboardID but there is a DashBoardName. One of the fields returned by the Get Activity Event is ItemName, it is the DashBoardName. But the problem is there are several dashboards with the same name in the workspace. So the DashBoardName can't be used.

@bbbbbiiiii, Can you check your code, by default the API gives DashbordId

SivaMani_1-1642663092622.png

 

 

SivaMani_0-1642663057806.png

 

 

Thk u very much Siva for pointing this out! Truely that the DashboardID is returned by this api. I've found that in Power Query, Advanced Editor, the "DashbordID" is missing from my M Codes. Once, I add that in, things worked. Thank u once again! 🙂

 

bbbbbiiiii_0-1642730933820.png

bbbbbiiiii_1-1642730981834.png

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.