---
id: object/codeunit/6400
type: object
title: Codeunit 6400 "Flow Service Management"
summary: Codeunit 6400 "Flow Service Management" in Base Application (System.Automation). 14 public procedures, 1 events, 2 event subscribers. Present since at least BC23, still in BC30, changed in BC24-25, BC27-28, BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "30"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: bfe8bd4aa71c96b557fd3e2aaebc424f867cb41892fa940787228cc03bb87138
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Modules/System/PowerAutomate/FlowServiceManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Modules/System/PowerAutomate/FlowServiceManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10335
object_type: codeunit
object_id: 6400
name: Flow Service Management
namespace: System.Automation
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "27"
  - "28"
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 18
  events: 1
  subscribers: 2
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 23
  implements: 0
---

# Codeunit 6400 "Flow Service Management"

> Codeunit 6400 "Flow Service Management" in Base Application (System.Automation). 14 public procedures, 1 events, 2 event subscribers. Present since at least BC23, still in BC30, changed in BC24-25, BC27-28, BC30.

Base Application · System.Automation · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Modules/System/PowerAutomate/FlowServiceManagement.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Flow Service Configuration" = r |

## Events published

- `OnBeforeSendGetEnvironmentRequest(var ResponseText: Text; var Handled: Boolean)` (internal)

## Event subscriptions

- GetEnvironmentId subscribes to Codeunit "System Action Triggers" GetPowerPlatformEnvironmentId
- CheckOAuthAccessDenied subscribes to Page "Azure AD Access Dialog" OnOAuthAccessDenied

## Procedures

- `GetFlowUrl(): Text`
- `GetFlowEnvironmentsApi(): Text`
- `GetFlowDetailsUrl(FlowId: Guid): Text`
- `GetGenericError(): Text`
- `CanApproveForAll(): Boolean`
- `GetPowerAutomatePrivacyNoticeId(): Code[50]`
- `GetFlowEnvironmentID(): Text`
- `GetSelectedFlowEnvironmentName(): Text`
- `GetEnvironments(var TempFlowUserEnvironmentBuffer: Record "Flow User Environment Buffer" temporary)`
- `ParseResponseTextForEnvironments(ResponseText: Text; var TempFlowUserEnvironmentBuffer: Record "Flow User Environment Buffer" temporary)`
- `SaveFlowUserEnvironmentSelection(var TempFlowUserEnvironmentBuffer: Record "Flow User Environment Buffer" temporary)`
- `UseLinkedEnvironment()`
- `SaveFlowEnvironmentSelectionForAll(var TempFlowUserEnvironmentBuffer: Record "Flow User Environment Buffer" temporary)`
- `HasUserSelectedFlowEnvironment(): Boolean`

Plus 1 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (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 457 "Environment Information"](../codeunit/457.md) (2 calls: `GetEnvironmentId → GetLinkedPowerPlatformEnvironmentId`, `ParseResponseTextForEnvironments → GetLinkedPowerPlatformEnvironmentId`)
- [Codeunit 1299 "Web Request Helper"](../codeunit/1299.md) (1 call: `GetEnvironments → GetResponseTextUsingCharset`)
- [Codeunit 433 "Azure AD Tenant"](../codeunit/433.md) (1 call: `TryGetFlowEnvironmentsApi → GetPowerPlatformTenantURL`)
- [Codeunit 6300 "Azure AD Mgt."](../codeunit/6300.md) (1 call: `GetEnvironments → GetAccessTokenAsSecretText`)

## Called by

- [Page 1837 "Automate Environment Picker"](../page/1837.md) (3 calls: `OnOpenPage → CanApproveForAll`, `ShowLinkedEnvironmentStep → GetEnvironments`, `ShowLinkedEnvironmentStep → GetGenericError`)
- [Codeunit 1501 "Workflow Management"](../codeunit/1501.md) (1 call: `GetWebhookClientLink → GetFlowDetailsUrl`)
- [Page 21 "Customer Card"](../page/21.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 255 "Cash Receipt Journal"](../page/255.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 256 "Payment Journal"](../page/256.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 26 "Vendor Card"](../page/26.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 291 "Req. Worksheet"](../page/291.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 30 "Item Card"](../page/30.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 39 "General Journal"](../page/39.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 392 "Phys. Inventory Journal"](../page/392.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 40 "Item Journal"](../page/40.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 41 "Sales Quote"](../page/41.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 42 "Sales Order"](../page/42.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 43 "Sales Invoice"](../page/43.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 44 "Sales Credit Memo"](../page/44.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 49 "Purchase Quote"](../page/49.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 50 "Purchase Order"](../page/50.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 51 "Purchase Invoice"](../page/51.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 52 "Purchase Credit Memo"](../page/52.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 672 "Job Queue Entries"](../page/672.md) (1 call: `OnOpenPage → GetPowerAutomatePrivacyNoticeId`)
- [Page 99000823 "Output Journal"](../page/99000823.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 99000846 "Consumption Journal"](../page/99000846.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)
- [Page 99000852 "Planning Worksheet"](../page/99000852.md) (1 call: `OnInit → GetPowerAutomatePrivacyNoticeId`)

## Recent changes

- 2026-09-07 [#10335 Unblock bc login due to pp failures](../../changes/bcapps/10335.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC27-28, BC30

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 BC29 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: "Flow Service Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
