Skip to main content

Microsoft Power BI Connector

Microsoft Power BI Interact with and modify Power BI datasets

Connections

OAuth 2.0

OAuth 2.0 Connectivity for Microsoft Power BI

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Authorize URLThe OAuth 2.0 Authorization URL for Microsoft Power BIhttps://login.microsoftonline.com/common/oauth2/authorize
Token URLThe OAuth 2.0 Token URL for Microsoft Power BIhttps://login.microsoftonline.com/common/oauth2/v2.0/token
ScopesMicrosoft Power BI permission scopes must also be set on the OAuth applicationhttps://analysis.windows.net/powerbi/api/Dataset.ReadWrite.All
Client IDGenerate at https://dev.powerbi.com/apps
Client SecretGenerate at https://dev.powerbi.com/apps

Actions

Create Dataset

Creates a new dataset on 'My Workspace'

InputCommentsDefault
Connection
Dataset NameProvide a string value for the name of the database you want to interact with.
Columns
[
{
"name": "ProductID",
"dataType": "Int64"
},
{
"name": "Name",
"dataType": "string"
},
{
"name": "Category",
"dataType": "string"
},
{
"name": "IsCompete",
"dataType": "bool"
},
{
"name": "ManufacturedOn",
"dataType": "DateTime"
},
{
"name": "Sales",
"dataType": "Int64",
"formatString": "Currency"
}
]
Table Name

Create Rows

Adds new data rows to the specified table within the specified dataset from 'My Workspace'

InputCommentsDefault
Connection
Dataset IDA dataset is a spreadsheet like document that can be used to generate reports and visuals in Power BI. Datasets must be 'Push' datasets to be accessible via API.
Table Name
Rows
[
{
"ProductID": 1,
"Name": "Adjustable Race",
"Category": "Components",
"IsCompete": true,
"ManufacturedOn": "07/30/2014"
},
{
"ProductID": 2,
"Name": "LL Crankarm",
"Category": "Components",
"IsCompete": true,
"ManufacturedOn": "07/30/2014"
},
{
"ProductID": 3,
"Name": "HL Mountain Frame - Silver",
"Category": "Bikes",
"IsCompete": true,
"ManufacturedOn": "07/30/2014"
}
]

Delete Rows

Deletes all rows from the specified table within the specified dataset from 'My Workspace'

InputCommentsDefault
Connection
Dataset IDA dataset is a spreadsheet like document that can be used to generate reports and visuals in Power BI. Datasets must be 'Push' datasets to be accessible via API.
Table Name

List Datasets

Returns a list of datasets from 'My Workspace'

InputCommentsDefault
Connection
TopProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 1000.
Page OffsetProvide an integer value for the page offset for the given object's results.

List Groups

Returns a list of workspaces the user has access to

InputCommentsDefault
Connection
Page OffsetProvide an integer value for the page offset for the given object's results.
TopProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 1000.

List Reports

Returns a list of reports from 'My Workspace'

InputCommentsDefault
Connection
TopProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 1000.
Page OffsetProvide an integer value for the page offset for the given object's results.

List Tables

Returns a list of tables tables within the specified dataset from 'My Workspace'

InputCommentsDefault
Connection
Dataset IDA dataset is a spreadsheet like document that can be used to generate reports and visuals in Power BI. Datasets must be 'Push' datasets to be accessible via API.
TopProvide an integer value for the maximum amount of results that will be returned. Provide a value from 1 to 1000.
Page OffsetProvide an integer value for the page offset for the given object's results.

Raw Request

Send raw HTTP request to Microsoft Power BI

InputCommentsDefault
Connection
URLInput the path only (/profiles), The base URL is already included (https://api.powerbi.com/v1.0/myorg). For example, to connect to https://api.powerbi.com/v1.0/myorg/profiles, only /profiles is entered in this field./imports
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type.false
Max Retry CountThe maximum number of retries to attempt.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries.false

Update Table

Updates the metadata and schema for the specified table within the specified dataset from 'My Workspace'

InputCommentsDefault
Connection
Dataset IDA dataset is a spreadsheet like document that can be used to generate reports and visuals in Power BI. Datasets must be 'Push' datasets to be accessible via API.
Table Name
Columns
[
{
"name": "ProductID",
"dataType": "Int64"
},
{
"name": "Name",
"dataType": "string"
},
{
"name": "Category",
"dataType": "string"
},
{
"name": "IsCompete",
"dataType": "bool"
},
{
"name": "ManufacturedOn",
"dataType": "DateTime"
},
{
"name": "Sales",
"dataType": "Int64",
"formatString": "Currency"
}
]