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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
hexeh
Frequent Visitor

Power BI JS API Event Listeners - saveAsTriggered and saved

I'm trying to create possibility for Web App users to Edit and Save Copy of report.

I can track Save and SaveAs events only at saved event. To determine type of the action I need to compare Ids from customEvent detail (for SaveAs event.detail.originalReportObjectId defined, for Save - not).

 

My questions:

 

  1. Is there any other possibility to determine saving type?
  2. Is there any possibility to see the actual report name (for now event.detail.reportName is empty)?
  3. When does saveAsTriggered event fire?
1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@hexeh wrote:

I'm trying to create possibility for Web App users to Edit and Save Copy of report.

I can track Save and SaveAs events only at saved event. To determine type of the action I need to compare Ids from customEvent detail (for SaveAs event.detail.originalReportObjectId defined, for Save - not).

 

My questions:

 

  1. Is there any other possibility to determine saving type?
  2. Is there any possibility to see the actual report name (for now event.detail.reportName is empty)?
  3. When does saveAsTriggered event fire?

@hexeh

  1. There's a boolean value event.detail.saveAs which indicates a Save or SaveAs event.
  2. For SaveAs event, the event.detail.reportName has the actual name. For Save event, I don't find the name in the event, however I think you can get the actual name along with generating the embeddedtoken from backend.
  3. I don't have further idea on the saveAs Triggered event. I'll consult internally and post back if there comes any update.

 

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@hexeh wrote:

I'm trying to create possibility for Web App users to Edit and Save Copy of report.

I can track Save and SaveAs events only at saved event. To determine type of the action I need to compare Ids from customEvent detail (for SaveAs event.detail.originalReportObjectId defined, for Save - not).

 

My questions:

 

  1. Is there any other possibility to determine saving type?
  2. Is there any possibility to see the actual report name (for now event.detail.reportName is empty)?
  3. When does saveAsTriggered event fire?

@hexeh

  1. There's a boolean value event.detail.saveAs which indicates a Save or SaveAs event.
  2. For SaveAs event, the event.detail.reportName has the actual name. For Save event, I don't find the name in the event, however I think you can get the actual name along with generating the embeddedtoken from backend.
  3. I don't have further idea on the saveAs Triggered event. I'll consult internally and post back if there comes any update.

 

Hi @Eric_Zhang , can we have any update on saveAsTriggered event in powerbi embed application.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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