Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am looking at the new documentation for Power BI integration features. I have gotten my app to connect to Power BI but I cannot retrieve the workspace list because I do not know where the Workspace ID is located. I am using the supplied example from the following link:
https://github.com/Microsoft/PowerBI-Developer-Samples
Specifically the Apps Owns Data example as it was identified as the example showing embedding features for non poewer bi users. The operation to retrieve the workspaces is --> GetReportsInGroupAsync. This function takes a string paramter. The example documentation states this is the group or workspace Id in Power BI. The only ID with this name that I can see was when I created a workspace. The ID suppled was a simple string. The example validates that this value must be a guid. So my question is -- where is the ID that can be used in the dewscribed function located? This is an MS example demoing the new interfacing features and is unclear what this paramter is or where it comes from.
Solved! Go to Solution.
@petersi wrote:
I am looking at the new documentation for Power BI integration features. I have gotten my app to connect to Power BI but I cannot retrieve the workspace list because I do not know where the Workspace ID is located. I am using the supplied example from the following link:
https://github.com/Microsoft/PowerBI-Developer-Samples
Specifically the Apps Owns Data example as it was identified as the example showing embedding features for non poewer bi users. The operation to retrieve the workspaces is --> GetReportsInGroupAsync. This function takes a string paramter. The example documentation states this is the group or workspace Id in Power BI. The only ID with this name that I can see was when I created a workspace. The ID suppled was a simple string. The example validates that this value must be a guid. So my question is -- where is the ID that can be used in the dewscribed function located? This is an MS example demoing the new interfacing features and is unclear what this paramter is or where it comes from.
The GetReportsInGroupAsync(GroupId) GroupId is actually the app workspace ID in your power bi service, you could find it in the url when accessing the workspace in Power BI service and set it in the web.config file.
You could also get the groupId via the REST API Get Groups.
@petersi wrote:
I am looking at the new documentation for Power BI integration features. I have gotten my app to connect to Power BI but I cannot retrieve the workspace list because I do not know where the Workspace ID is located. I am using the supplied example from the following link:
https://github.com/Microsoft/PowerBI-Developer-Samples
Specifically the Apps Owns Data example as it was identified as the example showing embedding features for non poewer bi users. The operation to retrieve the workspaces is --> GetReportsInGroupAsync. This function takes a string paramter. The example documentation states this is the group or workspace Id in Power BI. The only ID with this name that I can see was when I created a workspace. The ID suppled was a simple string. The example validates that this value must be a guid. So my question is -- where is the ID that can be used in the dewscribed function located? This is an MS example demoing the new interfacing features and is unclear what this paramter is or where it comes from.
The GetReportsInGroupAsync(GroupId) GroupId is actually the app workspace ID in your power bi service, you could find it in the url when accessing the workspace in Power BI service and set it in the web.config file.
You could also get the groupId via the REST API Get Groups.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |