cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shakeel
Regular Visitor

How to Get Newly Generated Report Id in Power BI Embedded Javascript

I've created Integration application with Power BI Embedded Javascript with ASP.Net

 

I've also achieved Create New Report option using Power BI Javascript. 

It's gives me option to save as and it also work fine. But I need to get in return of save as report of it's newly generated Report Id.

 

How I can get newly created report's report id in javascript when I fire Save as command.

Please let me know

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft
Microsoft


@Shakeel wrote:

I've created Integration application with Power BI Embedded Javascript with ASP.Net

 

I've also achieved Create New Report option using Power BI Javascript. 

It's gives me option to save as and it also work fine. But I need to get in return of save as report of it's newly generated Report Id.

 

How I can get newly created report's report id in javascript when I fire Save as command.

Please let me know


@Shakeel

You can get the SavedAs report's ID from the event listener. The reportObjectId is the reportid.

report.on("saved", function(event) {
	  
	  if(event.detail.saveAs){
	   
	   console.log(event.detail.reportObjectId); 
	  
	  } 
	  
})

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft
Microsoft


@Shakeel wrote:

I've created Integration application with Power BI Embedded Javascript with ASP.Net

 

I've also achieved Create New Report option using Power BI Javascript. 

It's gives me option to save as and it also work fine. But I need to get in return of save as report of it's newly generated Report Id.

 

How I can get newly created report's report id in javascript when I fire Save as command.

Please let me know


@Shakeel

You can get the SavedAs report's ID from the event listener. The reportObjectId is the reportid.

report.on("saved", function(event) {
	  
	  if(event.detail.saveAs){
	   
	   console.log(event.detail.reportObjectId); 
	  
	  } 
	  
})

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!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.