Reference

Endpoint Get Tables


Name

get_tables

Description

Gets a list of Tables of a Dataset

Parameters

Parameter Required Options
Name: DatasetId

Label: DatasetId

Name: WorkspaceId

Label: WorkspaceId

Option Value
Default

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Name DT_WSTR nvarchar(250) 250
If the column you are looking for is missing, consider customizing Power BI Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use Power BI Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - Power BI
Read and write Microsoft Power BI data effortlessly. Access, refresh, and manage datasets, reports, and dashboards — almost no coding required.
Power BI
Get Tables
Optional Parameters
DatasetId
WorkspaceId
EnableCustomReplace 1
SearchFor (?<=(\s*)({|,))(?<QuotedColumn>"\[(?<Column>.+?)\]")(?=:)--regex
ReplaceWith "$4"
SSIS API Source - Read from table or endpoint

API Destination

API Destination - Power BI
Read and write Microsoft Power BI data effortlessly. Access, refresh, and manage datasets, reports, and dashboards — almost no coding required.
Power BI
Get Tables
Optional Parameters
DatasetId
WorkspaceId
EnableCustomReplace 1
SearchFor (?<=(\s*)({|,))(?<QuotedColumn>"\[(?<Column>.+?)\]")(?=:)--regex
ReplaceWith "$4"
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Read tables

<p>Gets tables from the default dataset.</p>

SELECT * 
FROM get_tables

Read tables in a dataset

<p>Gets tables from a specific dataset. Supply <code>DatasetId</code> in the <code>WITH</code> clause.</p>

SELECT * 
FROM get_tables
WITH (DatasetId='aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee')

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Read tables

<p>Gets tables from the default dataset.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * 
FROM get_tables';

EXEC (@MyQuery) AT [LS_TO_POWER_BI_IN_GATEWAY];

Read tables in a dataset

<p>Gets tables from a specific dataset. Supply <code>DatasetId</code> in the <code>WITH</code> clause.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * 
FROM get_tables
WITH (DatasetId=''aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'')';

EXEC (@MyQuery) AT [LS_TO_POWER_BI_IN_GATEWAY];