Data Connector
The Power BI REST API is a data service that allow applications to manage Power BI content, perform admin operations, and embed Power BI content inside custom applications.
The WireBootstrap for Power BI API Data Connector is a WireBootstrap data connector that can talk to Power BI using the Power BI REST APIs. The WireBootstrap for Power BI REST API Data Connector allows lists of meta data such as dashboards and reports to be displayed inside WireBootstrap components other page elements with minimal configuration.
The data connector also serves data to WireBootstrap for Power BI embed components.
Data Source
To use the data connector, create a WireBootstrap data source using the connector's service provider key in the initialization. The service provider key for the WireBootstrap for Power BI REST API Data Connector is pbi
.
Authentication
For security, the Power BI REST API requires an access token. For details on creating a Power BI access token, visit Access Tokens.
Once created, set the Headers
configuration property when creating the data source to use the token with the Bearer
authentication type as seen below.
Service Root
By default, the root URL of the Power BI REST API is located at the following location.
To specify a different location, use the ServiceRoot
configuration property on the data source.
Service Provider
Service provider specific properties are set on a WireBootstrap data source using the Provider
property.
The WireBootstrap for Power BI REST API Data Connector's service provider has one property called groupId
. This is the string id of the group or workspace containing the Power BI objects including dashboards and reports for which meta data will be retrieved using the data source.
The groupId
value can seen in the browser's URL after opening a Power BI workspace.
To create a WireBootstrap data source against the workspace above, specify the groupId
property on the Provider
configuration object when creating the data source.
Queries
Once created, a data source can execute queries against Power BI using the standard table query interface in WireBootstrap. The syntax for querying Power BI is below.
For example, to request a list of dashboards, use the dashboards
entity.
To request a single dashboard, qualify the query using the dashboard's id
. A dashboard's id can be found in the browser's URL after opening the dashboard in Power BI.
The query below requests details for the dashboard above.
Execute Queries
After creating a query, execute the query in Power BI using the execAsync
method on the data source.
Last updated