---
title: "Codeunit 6305 Set Power BI User Config"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/6305-set-power-bi-user-config/
type: codeunit
id: 6305
name: "Set Power BI User Config"
app: "Base Application"
namespace: System.Integration.PowerBI
versions: "17-23"
build: 23.5.16502.31399
obsolete: "Pending 21.0"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 6305 Set Power BI User Config

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/6305-set-power-bi-user-config/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Integration.PowerBI |
| Versions | 17-23 |
| Obsolete | Pending 21.0, seen from 21. This codeunit has been merged to table 6304 "Power BI User Configuration". Use the same functions in the record instead. |
| Source file | System/PowerBI/Obsoleted/SetPowerBIUserConfig.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetUserConfig | (var Record Power BI User Configuration, Text) | Boolean | public | 17-23 | - | - |
| CreateOrReadUserConfigEntry | (var Record Power BI User Configuration, var Guid, Text[50]) | - | public | 17-20 | Pending 18.0 | Use CreateOrReadUserConfigEntry without GUID parameter instead |
| HasConfig | (Text) | Boolean | public | 18-23 | - | - |
| CreateOrReadUserConfigEntry | (var Record Power BI User Configuration, Text[50]) | - | public | 18-23 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeSetUserConfig | (var Record Power BI User Configuration, Text, var Boolean, var Boolean) | 17-23 | - | - |
| Integration event | OnCreateOrReadUserConfigEntryOnBeforePowerBIUserConfigurationInsert | (var Record Power BI User Configuration) | 19-23 | - | - |

## 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.

Jonas Paprotka, 2026-09-20.
