Microsoft Power BI Snap Pack Examples

The following examples demonstrate how to use Snaps in the Microsoft Power BI Snap Pack.

Example Snaps used

Retrieving Refresh Schedules for Specific Datasets

This example demonstrates how to use the Power BI Read Snap to retrieve the refresh schedules for the SalesMarketing dataset from the My Workspace workspace. This example assumes that you have configured and authorized a valid Power BI OAuth2 account (see Configure Microsoft Power BI Accounts).

Retrieving Specific Workspace Details

This example demonstrates how to use the Power BI Read Groups Snap to retrieve the details of workspaces that match a search criterion. This example assumes that you have configured and authorized a valid Power BI OAuth2 account (see Configure Microsoft Power BI Accounts).

Adding a Blank Dashboard

This example demonstrates how to use the Power BI Post Snap to create a blank dashboard in a specified workspace. This example assumes that you have configured and authorized a valid Power BI OAuth2 account (see Configure Microsoft Power BI Accounts).

Creating a New Dataset

This example demonstrates how to use the Power BI Push Dataset Snap to create a new dataset, along with its own set of records, in a workspace. This example assumes that you have configured and authorized a valid Power BI OAuth2 account (see Configure Microsoft Power BI Accounts).

Importing a PBIX File

This example demonstrates how to use the Power BI Post Import Snap to import a PBIX file from the SnapLogic Database (SLDB) into a specified workspace. This example assumes that you have configured and authorized a valid Power BI OAuth2 account (see Configure Microsoft Power BI Accounts).

Updating a Dataset's Refresh Schedule

This example demonstrates how to use the Power BI Update Snap to update a specific dataset's refresh schedule. This example assumes that you have configured and authorized a valid Power BI OAuth2 account (see Configure Microsoft Power BI Accounts).

Deleting a Dataset from a Workspace

This example demonstrates how to use the Power BI Read and Power BI Delete Snaps to delete the dataset named SalesMarketing from the My Workspace workspace. This example assumes that you have configured and authorized a valid Power BI OAuth2 account (see Configure Microsoft Power BI Accounts).