cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sanketpathre
New Member

How to check which context menu is click

Hello there,

I want to know which context menu is clicked, so that I can add some extra logs in backend that user perform on emeded reports. In fact, I want to log user detail who export data from PBI. So I want to capture, "Exporta Data" click button.
But I dont find any event which trigger on clicked of "Export data" menu or "Export" as shown in below screen shot.

sanketpathre_0-1670249409103.png  

 

sanketpathre_1-1670249541831.png

 

I tried with below but it didnt work as it work only on Extened context menu buttons.

report.off('commandTriggered');
report.on('commandTriggered', function (event) {
debugger;
let data = event.detail;
console.log("commandTriggered - buttonClicked:\n", data);
});

Also below work with PBI report buttons not default "Export" as shown in 2nd screen shot above
//report.off("buttonClicked");
//report.on("buttonClicked", function (event) {
// debugger;
// let data = event.detail;
// console.log("Event - buttonClicked:\n", data);
//});


3 REPLIES 3
sanketpathre
New Member

Hi @RicoZhou ,
Thanks for Info, But I have little different requirement.
My requirement is to add extra log in backend who ever download/ export data from embeded PBI report visuals.
So I want to check whether we can track "Export" click button in embeded report. So who ever Export Data, we can have log entry in our backend.
Is there any way on client side to track such actions which define by PBI like "export data"?
Is there any way to capture any action and its name on embedded report on cient side?

RicoZhou
Community Support
Community Support

Hi @sanketpathre ,

 

As far as I know, we can get the Power BI export event log from audit log.

For reference: Search the audit log in the compliance portal

RicoZhou_0-1670315573269.png

Audit logging for Power BI isn't enabled by default. To search for Power BI activities in the audit log, you have to enable auditing in the Power BI admin portal. For instructions, see the "Audit logs" section in Power BI admin portal.

For more details: View audit logs

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This wont help for my requirement. I want to track event on embedded report, client side, when client click on export data  menu -> Export.

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.