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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Lorenz33
Helper III
Helper III

Using Nuget package manager with Report Server (Power BI)

We are using Power BI Desktop for Report Server (January 2020) and Report Server Optimized for Power BI (January 2020).

 

We are trying to utilize Nuget to embed a report.

 

https://github.com/Microsoft/PowerBI-CSharp#aspnet-mvc

 

In doing so we are attempting to use the PowerBI.CreateReportEmbedToken method:

 

var embedToken = PowerBIToken.CreateReportEmbedToken(workspaceCollection, workspaceId, reportId);

 

Where do I find the values for:

workspaceCollection?

workspaceId?

reportId?

 

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

That nuget and those APIs are for the cloud version of Power BI the don't apply to PBIRS. If you are embedding something locally in an intranet based site I think you would just IFrame in the report. The following example is for embedding in sharepoint, but the same technique should work for other types of sites https://docs.microsoft.com/en-us/power-bi/report-server/quickstart-embed I used a technique like this to embed a report in a tab in MS Teams.

View solution in original post

1 REPLY 1
d_gosbell
Super User
Super User

That nuget and those APIs are for the cloud version of Power BI the don't apply to PBIRS. If you are embedding something locally in an intranet based site I think you would just IFrame in the report. The following example is for embedding in sharepoint, but the same technique should work for other types of sites https://docs.microsoft.com/en-us/power-bi/report-server/quickstart-embed I used a technique like this to embed a report in a tab in MS Teams.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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