Codeunit 6177 E-Doc. Historical Matching

E-Document Core, Microsoft.eServices.EDocument.Processing.AI

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

  1. 54callsDirectHistoricalMatch
  2. 58callsCodeunit 8347 Feature Configuration GetConfiguration
  3. 60callsPrepareHistoricalData
  4. 63callsCodeunit 6195 E-Doc. AI Tool Processor Setup
  5. 65callsCodeunit 6195 E-Doc. AI Tool Processor Process
  6. 65callsCreateUserMessage
  7. 68callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
  8. 69callsCodeunit 7758 AOAI Function Response GetResult
  9. 70raisesOnGetHistoricalMatchFunctionResponse
  10. 77callsTryValidateHistoricalMatchingRecord
  11. 82callsCodeunit 6120 E-Doc. Purchase Hist. Mapping UpdateMissingLineValuesFromHistory
  12. 82callsGetConfidenceScore
  13. 85callsCodeunit 6122 E-Doc. Imp. Session Telemetry SetLineBool
  14. 90callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
  15. 93callsCodeunit 8703 Feature Telemetry LogUsage
  16. 93callsCodeunit 6195 E-Doc. AI Tool Processor GetEDocumentMatchingAssistanceName
  17. 93callsGetFeatureName

DirectHistoricalMatch line 96, local

  1. 120callsCodeunit 6120 E-Doc. Purchase Hist. Mapping FindRelatedPurchaseLineInHistory
  2. 122callsCodeunit 6120 E-Doc. Purchase Hist. Mapping UpdateMissingLineValuesFromHistory
  3. 124writesTable 6101 E-Document Purchase Line Modify(true)
  4. 125callsCodeunit 6122 E-Doc. Imp. Session Telemetry SetLineBool

PrepareHistoricalData line 168, local

  1. 188callsCodeunit 8711 Telemetry LogMessage
  2. 196callsCodeunit 8711 Telemetry LogMessage
  3. 201callsLoadHistoricalDataIntoTempTable
  4. 203callsCodeunit 8703 Feature Telemetry LogError
  5. 203callsGetFeatureName
  6. 207callsCodeunit 8711 Telemetry LogMessage
  7. 213callsCollectPotentialMatches

LoadHistoricalDataIntoTempTable line 219, local

  1. 252writesTable 123 Purch. Inv. Line Insert
  2. 265writesTable 123 Purch. Inv. Line Modify
  3. 278callsCodeunit 8703 Feature Telemetry LogUsage
  4. 278callsGetFeatureName

CollectPotentialMatches line 281, local

  1. 287callsSearchAndAddMatches
  2. 291callsSearchAndAddMatches
  3. 295callsProcessSimilarDescriptionsWithAI

ProcessSimilarDescriptionsWithAI line 299, local

  1. 304callsCodeunit 8711 Telemetry LogMessage
  2. 306callsCodeunit 6105 E-Doc. Similar Descriptions GetSimilarDescriptions
  3. 312callsSearchAndAddMatches

SearchAndAddMatches line 316, local

  1. 324callsCodeunit 8711 Telemetry LogMessage
  2. 343callsCodeunit 8711 Telemetry LogMessage
  3. 346callsIsSimilarHistoricalRecordTracked
  4. 357callsAddHistoricalMatchFromPurchInvLine
  5. 361callsCodeunit 8711 Telemetry LogMessage

IsSimilarHistoricalRecordTracked line 364, local

  1. 376callsGetQuantityGroup
  2. 382callsIsSimilarVariant

AddHistoricalMatchFromPurchInvLine line 396, local

  1. 416writesTable 6129 EDoc Historical Match Buffer Insert

IsSimilarVariant line 432, local

  1. 444callsGetQuantityGroup
  2. 445callsGetQuantityGroup

CreateUserMessage line 476, local

  1. 488callsBuildEDocumentPurchaseLinesJson
  2. 489callsBuildHistoricalMatchesJson
  3. 502raisesOnUserMessageCreated

GetPrompt line 580

  1. 589callsGetName

GetSystemPrompt line 640

  1. 649callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
  2. 652callsGetFeatureName