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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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 @v-rzhou-msft ,
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?

v-rzhou-msft
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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