Codeunit 6177 E-Doc. Historical Matching
src/Apps/W1/EDocument/App/src/Processing/AI/Tools/EDocHistoricalMatching.Codeunit.al13 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 37, trigger
- 54callsDirectHistoricalMatch
- 58callsCodeunit 8347 Feature Configuration GetConfiguration
- 60callsPrepareHistoricalData
- 63callsCodeunit 6195 E-Doc. AI Tool Processor Setup
- 65callsCodeunit 6195 E-Doc. AI Tool Processor Process
- 65callsCreateUserMessage
- 68callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
- 69callsCodeunit 7758 AOAI Function Response GetResult
- 70raisesOnGetHistoricalMatchFunctionResponse
- 77callsTryValidateHistoricalMatchingRecord
- 82callsCodeunit 6120 E-Doc. Purchase Hist. Mapping UpdateMissingLineValuesFromHistory
- 82callsGetConfidenceScore
- 85callsCodeunit 6122 E-Doc. Imp. Session Telemetry SetLineBool
- 90callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
- 93callsCodeunit 8703 Feature Telemetry LogUsage
- 93callsCodeunit 6195 E-Doc. AI Tool Processor GetEDocumentMatchingAssistanceName
- 93callsGetFeatureName
DirectHistoricalMatch line 96, local
- 120callsCodeunit 6120 E-Doc. Purchase Hist. Mapping FindRelatedPurchaseLineInHistory
- 122callsCodeunit 6120 E-Doc. Purchase Hist. Mapping UpdateMissingLineValuesFromHistory
- 124writesTable 6101 E-Document Purchase Line Modify(true)
- 125callsCodeunit 6122 E-Doc. Imp. Session Telemetry SetLineBool
PrepareHistoricalData line 168, local
- 188callsCodeunit 8711 Telemetry LogMessage
- 196callsCodeunit 8711 Telemetry LogMessage
- 201callsLoadHistoricalDataIntoTempTable
- 203callsCodeunit 8703 Feature Telemetry LogError
- 203callsGetFeatureName
- 207callsCodeunit 8711 Telemetry LogMessage
- 213callsCollectPotentialMatches
LoadHistoricalDataIntoTempTable line 219, local
- 252writesTable 123 Purch. Inv. Line Insert
- 265writesTable 123 Purch. Inv. Line Modify
- 278callsCodeunit 8703 Feature Telemetry LogUsage
- 278callsGetFeatureName
CollectPotentialMatches line 281, local
ProcessSimilarDescriptionsWithAI line 299, local
- 304callsCodeunit 8711 Telemetry LogMessage
- 306callsCodeunit 6105 E-Doc. Similar Descriptions GetSimilarDescriptions
- 312callsSearchAndAddMatches
SearchAndAddMatches line 316, local
- 324callsCodeunit 8711 Telemetry LogMessage
- 343callsCodeunit 8711 Telemetry LogMessage
- 346callsIsSimilarHistoricalRecordTracked
- 357callsAddHistoricalMatchFromPurchInvLine
- 361callsCodeunit 8711 Telemetry LogMessage
IsSimilarHistoricalRecordTracked line 364, local
- 376callsGetQuantityGroup
- 382callsIsSimilarVariant
AddHistoricalMatchFromPurchInvLine line 396, local
- 416writesTable 6129 EDoc Historical Match Buffer Insert
CreateUserMessage line 476, local
- 488callsBuildEDocumentPurchaseLinesJson
- 489callsBuildHistoricalMatchesJson
- 502raisesOnUserMessageCreated
GetSystemPrompt line 640
- 649callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
- 652callsGetFeatureName