Data Connector
Last updated
Last updated
The 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 that can talk to Power BI using the Power BI REST APIs. The 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.
To use the data connector, create a 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
.
For security, the Power BI REST API requires an access token. For details on creating a Power BI access token, visit .
Once created, set the Headers
configuration property when creating the data source to use the token with the Bearer
authentication type as seen below.
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 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.
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.
After creating a query, execute the query in Power BI using the execAsync
method on the data source.
Once created, a data source can execute queries against Power BI using the . The syntax for querying Power BI is below.