Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions build/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -3768,6 +3768,26 @@
}
]
},
{
"name": "API - Codeunits",
"groups": [
{
"name": "AllExtensions"
},
{
"name": "Financials"
},
{
"name": "FinancialsExtensions"
},
{
"name": "OnPrem"
},
{
"name": "OnPremExtensions"
}
]
},
{
"name": "API Reports - Finance",
"groups": [
Expand Down
11 changes: 11 additions & 0 deletions build/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,17 @@
"ruleSetPath": "$ENV:INETROOT\\App\\Rulesets\\app.ruleset.json",
"ruleSetPathMinorRelease": "$ENV:INETROOT\\App\\Rulesets\\MinorRelease\\app.ruleset.json"
},
"API - Codeunits": {
"projectPath": "$env:INETROOT\\App\\BCApps\\src\\Apps\\W1\\APICodeunits\\app",
"dvdFolder": "Applications\\APICodeunits\\Source",
"hasTranslations": true,
"installOnEnvironmentUpdate": true,
"supportedCountries": "All",
"runStaticCodeAnalysis": true,
"logLevel": "warning",
"ruleSetPath": "$env:INETROOT\\App\\BCApps\\src\\rulesets\\base.ruleset.json",
"ruleSetPathMinorRelease": "$env:INETROOT\\App\\BCApps\\src\\rulesets\\minorrelease.ruleset.json"
},
"API Reports - Finance": {
"projectPath": "$env:INETROOT\\App\\BCApps\\src\\Apps\\W1\\APIReportsFinance\\App",
"dvdFolder": "Applications\\APIReportsFinance\\Source",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps AT/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps AU/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps BE/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps CA/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps CH/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps CZ/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps DE/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps DK/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps ES/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps FI/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps FR/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps GB/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps IN/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkit/app",
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps IS/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps IT/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps MX/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps NL/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps NO/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps NZ/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps RU/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkit/app",
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps SE/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps US/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/AMCBanking365Fundamentals/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
1 change: 1 addition & 0 deletions build/projects/Apps W1/.AL-Go/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"../../../src/Apps/W1/AIDevelopmentToolkit/app",
"../../../src/Apps/W1/AIDevelopmentToolkitDesign/app",
"../../../src/Apps/W1/AIDevelopmentToolkitEvaluation/app",
"../../../src/Apps/W1/APICodeunits/app",
"../../../src/Apps/W1/APIReportsFinance/App",
"../../../src/Apps/W1/APIV1/app",
"../../../src/Apps/W1/APIV2/app",
Expand Down
3 changes: 3 additions & 0 deletions src/Apps/W1/APICodeunits/app/.objidconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"appPoolId": "0ef705b60e6900f11232505938e0e8a87867b9eac95b5a0d58dd87d6cbb44014"
}
Binary file added src/Apps/W1/APICodeunits/app/ExtensionLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions src/Apps/W1/APICodeunits/app/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"id": "2573cc59-1cfc-4991-85e4-32d0cc0f60e2",
"name": "API - Codeunits",
"publisher": "Microsoft",
"version": "29.0.0.0",
"brief": "Exposes selected Business Central operations as API codeunits.",
"description": "Provides non-data-bound API codeunits (unbound actions) under the microsoft/codeunits route, wrapping standard Business Central operations for programmatic and agent (MCP) access.",
"privacyStatement": "https://go.microsoft.com/fwlink/?linkid=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "https://go.microsoft.com/fwlink/?linkid=2103698",
"url": "https://go.microsoft.com/fwlink/?linkid=724011",
"contextSensitiveHelpUrl": "https://go.microsoft.com/fwlink/?linkid=2134520",
"logo": "ExtensionLogo.png",
"platform": "29.0.0.0",
"application": "29.0.0.0",
"target": "Cloud",
"idRanges": [
{
"from": 6007,
"to": 6014
}
],
"features": [
"TranslationFile"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

namespace Microsoft.API.Codeunits;

using System.Automation;

/// <summary>
/// API codeunit exposing workflow approval operations as non-data-bound (unbound) actions.
/// Wraps codeunit "Workflow Webhook Subscription" (1544).
/// </summary>
/// <remarks>TODO(AB#641822): decorate with the API codeunit subtype (microsoft/codeunits) when the platform ships it.</remarks>
codeunit 6008 "Approvals API"
{
Access = Public;
InherentEntitlements = X;
InherentPermissions = X;

/// <summary>Returns the email address of the direct approver for the given requestor.</summary>
/// <param name="RequestorEmailAddress">The requestor's email address.</param>
/// <returns>The direct approver's email address.</returns>
procedure GetDirectApprover(RequestorEmailAddress: Text): Text
var
WorkflowWebhookSubscription: Codeunit "Workflow Webhook Subscription";
begin
exit(WorkflowWebhookSubscription.GetDirectApprover(RequestorEmailAddress));
end;
}
Loading
Loading