---
title: "Codeunit 6321 Power BI Rest Service Provider"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/6321-power-bi-rest-service-provider/
type: codeunit
id: 6321
name: "Power BI Rest Service Provider"
app: "Base Application"
namespace: System.Integration.PowerBI
versions: "23-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/6321-power-bi-rest-service-provider/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 6321 Power BI Rest Service Provider

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/6321-power-bi-rest-service-provider/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Integration.PowerBI |
| Versions | 23-28 |
| Source file | Modules/System/PowerBI/APIs/PowerBIRestServiceProvider.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Initialize | (Text, Text) | - | public | 23-24 | - | - |
| StartImport | (InStream, Text, Boolean, var Guid, var DotNet OperationResult) | - | public | 23-28 | - | - |
| CheckUserLicense | (var DotNet OperationResult) | - | public | 23-28 | - | - |
| GetImport | (Guid, var Text, var DotNet ReturnedReport, var DotNet OperationResult) | - | public | 23-28 | - | - |
| UpdateDatasetParameters | (Text, Text, Text, var DotNet OperationResult) | - | public | 23-27 | - | - |
| GetDatasource | (Text, var Guid, var Guid, var DotNet OperationResult) | - | public | 23-28 | - | - |
| UpdateDatasourceCredentials | (Guid, Guid, Text, var DotNet OperationResult) | - | public | 23-24 | - | - |
| RefreshDataset | (Text, var DotNet OperationResult) | - | public | 23-28 | - | - |
| GetReportsInMyWorkspace | (var DotNet ReturnedReportList, var DotNet OperationResult) | - | public | 23-28 | - | - |
| GetReportsInWorkspace | (Guid, var DotNet ReturnedReportList, var DotNet OperationResult) | - | public | 23-28 | - | - |
| GetWorkspaces | (var DotNet ReturnedWorkspaceList, var DotNet OperationResult) | - | public | 23-28 | - | - |
| Initialize | (SecretText, Text) | - | public | 25-28 | - | - |
| UpdateDatasourceCredentials | (Guid, Guid, SecretText, var DotNet OperationResult) | - | public | 25-28 | - | - |
| UpdateDatasetParameters | (Text, Dictionary, var DotNet OperationResult) | - | public | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
