Codeunit 6163 E-Doc. PO Copilot Matching

E-Document Core, Microsoft.eServices.EDocument.OrderMatch.Copilot

Source AL, 337 lines

src/Apps/W1/EDocument/App/src/Processing/OrderMatching/Copilot/EDocPOCopilotMatching.Codeunit.allines 13 to 28 of 337, Copyright (c) Microsoft Corporation. MIT

codeunit 6163 "E-Doc. PO Copilot Matching"{    Access = Internal;    InherentPermissions = X;    InherentEntitlements = X;    ObsoleteState = Pending;    ObsoleteReason = 'The E-Document Purchase Order Matching Copilot has been deprecated. AI-assisted line matching is now handled at import time in the E-Document Purchase Draft experience by codeunit "E-Doc. AI Tool Processor".';    ObsoleteTag = '29.0';    var        EDocAIMatchingFunction: Codeunit "E-Doc. PO AOAI Function";        FeatureTelemetry: Codeunit "Feature Telemetry";        GroundResult: Boolean;        CostDifferenceThreshold: Decimal;        AzureOpenAIFailureErr: Label 'Sorry, something went wrong. Please try again.';        LearnMoreUrlTxt: Label 'https://go.microsoft.com/fwlink/?linkid=2262630', Locked = true;

All 337 lines

Public procedures 9 in 29

MatchWithCopilot(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary): Booleannew in 24
CostDifference(POCost: Decimal; PODiscount: Decimal; EdocCost: Decimal; EDocDiscount: Decimal): Decimalnew in 24
Match(var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; CompletionPromptTxt: SecretText; UserInputTxt: Text): Booleannew in 24
Match(CompletionPromptTxt: SecretText; UserInputTxt: Text; var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary): Integernew in 24
SumUnitCostForAIMatches(var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary): Decimalnew in 24
RegisterAICapability()new in 24

All 11 procedures in 24-29

Changes 1 in 29

List17181920212223242526272829
Object1
Procedures31
codeunit 6163 "E-Doc. PO Copilot Matching"new in 24
marked Pending, tag 29.0: The E-Document Purchase Order Matching Copilot has been deprecated. AI-assisted line matching is now handled at import time in the E-Document Purchase Draft experience by codeunit "E-Doc. AI Tool Processor".

All 5 changes in 24-29