cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Using Nuget package manager with Report Server (Power BI)

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
Highlighted
Super User III
Super User III

Re: Using Nuget package manager with Report Server (Power BI)

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

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors
Top Kudoed Authors