Power BI Embedded 报表选择器

Power BI Embedded Report Picker

我有一个嵌入式站点供我的用户查看报告。我有一个 Power BI 主登录名,所有客户都通过该登录名。

身份验证和请求是使用 PowerBI.Api.V2 通过 .NET 后端完成的。当我对单个 reportId 进行硬编码并嵌入全屏 iframe 时,一切正常。

我的问题是针对有多个报告的客户;是否有一个内置的报告选择器报告,我可以将其嵌入到已经为我处理过的报告选择中?或者我应该在检索到我的用户可以从中选择的报告列表后着手构建界面吗?

不,没有 built-in 个选择器。 Power BI 提供了一个 API 接口,您必须自己实现这些接口。当然,您可以构建这些选择器并使它们可供我们使用:)

要获取工作区列表,您需要调用 Get Groups. This will give you a list of user's workspaces. You can show their name property values to the user, but you will need their id (the guid). When you know the id of a workspace, you can list the reports in it by calling Get Reports In Group. The same way you can call Get Dashboards In Group and Get Tiles In Group