---
id: object/codeunit/48524
type: object
title: Codeunit 48524 "Fabric Platform Credential Mgt"
summary: Codeunit 48524 "Fabric Platform Credential Mgt" in MicrosoftFabricMirroring (Microsoft.FabricExport). 13 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - microsoftfabricmirroring
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-07T23:32:29.863Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 1b9d66d67dde6efb437038198fac6c6e863a36f40084cc04fd01d9bc889b9879
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f18567dc08e2bd162bf192e1da4d714b57eb099f/src/Apps/W1/MicrosoftFabricMirroring/app/src/platform/FabricPlatformCredentialMgt.Codeunit.al
    title: src/Apps/W1/MicrosoftFabricMirroring/app/src/platform/FabricPlatformCredentialMgt.Codeunit.al (main)
    date: null
    commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11314
object_type: codeunit
object_id: 48524
name: Fabric Platform Credential Mgt
namespace: Microsoft.FabricExport
app: MicrosoftFabricMirroring
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 15
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 4
  implements: 0
---

# Codeunit 48524 "Fabric Platform Credential Mgt"

> Codeunit 48524 "Fabric Platform Credential Mgt" in MicrosoftFabricMirroring (Microsoft.FabricExport). 13 public procedures. Introduced in BC30.

MicrosoftFabricMirroring · Microsoft.FabricExport · BC30 · [source at f18567dc](https://github.com/microsoft/BCApps/blob/f18567dc08e2bd162bf192e1da4d714b57eb099f/src/Apps/W1/MicrosoftFabricMirroring/app/src/platform/FabricPlatformCredentialMgt.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `SetClientId(ClientId: Text)` (internal)
- `GetClientId(): Text` (internal)
- `SetPrincipalId(PrincipalId: Text)` (internal)
- `GetPrincipalId(): Text` (internal)
- `SetOpenMirroringDatabaseName(OpenMirroringDatabaseName: Text)` (internal)
- `GetOpenMirroringDatabaseName(): Text` (internal)
- `SetLastEnableRequestedAt(Value: DateTime)` (internal)
- `GetLastEnableRequestedAt(): DateTime` (internal)
- `SetClientSecret(ClientSecret: SecretText)` (internal)
- `IsClientSecretSet(): Boolean` (internal)
- `GetClientSecret(): SecretText` (internal)
- `ClearTokenCache()`
- `AcquireFabricApiTokenDelegated(): SecretText`: Acquires a delegated Fabric API token via authorization code flow (interactive browser prompt). The result is cached in-session for 1 hour. Will be replaced by MS first-party auth.

Plus 2 local procedures.

## Calls

From the extracted call graph of BC30 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 48523 "Fabric Platform Lookup State"](../codeunit/48523.md) (4 calls: `AcquireFabricApiTokenDelegated → GetFabricApiToken`, `AcquireFabricApiTokenDelegated → HasFabricApiToken`, `AcquireFabricApiTokenDelegated → SetFabricApiToken`, …)
- [Codeunit 501 "OAuth2"](../codeunit/501.md) (2 calls: `AcquireFabricApiTokenDelegated → AcquireTokenByAuthorizationCode`, `AcquireFabricApiTokenDelegated → GetDefaultRedirectURL`)
- [Codeunit 1266 "Cryptography Management"](../codeunit/1266.md) (1 call: `SetClientSecret → IsEncryptionEnabled`)
- [Codeunit 433 "Azure AD Tenant"](../codeunit/433.md) (1 call: `GetAuthorityTenantId → GetAadTenantId`)

## Called by

- [Codeunit 48520 "Fabric Platform Mgt"](../codeunit/48520.md) (5 calls: `CheckEnableNotOnCooldown → GetLastEnableRequestedAt`, `EnableExport → GetClientId`, `EnableExport → GetClientSecret`, …)
- [Page 48511 "Fabric Platform Setup"](../page/48511.md) (4 calls: `OnOpenPage → GetClientId`, `OnOpenPage → GetOpenMirroringDatabaseName`, `OnOpenPage → GetPrincipalId`, …)
- [Page 48519 "Fabric Platform Setup Wizard"](../page/48519.md) (4 calls: `OnOpenPage → GetClientId`, `OnOpenPage → GetOpenMirroringDatabaseName`, `OnOpenPage → GetPrincipalId`, …)
- [Codeunit 48526 "Fabric Platform Admin Client"](../codeunit/48526.md) (3 calls: `AddServicePrincipalToWorkspace → AcquireFabricApiTokenDelegated`, `GetMirroredDatabases → AcquireFabricApiTokenDelegated`, `GetWorkspaces → AcquireFabricApiTokenDelegated`)

## Recent changes

- 2026-10-01 [#11314 [Project Arches] Microsoft Fabric Export Setup](../../changes/bcapps/11314.md) (main, BC30, feature, added)

## Across versions

- Present in: BC30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC30 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Fabric Platform Credential Mgt")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
