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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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