[E-Document] Agent-driven line matching infrastructure#7546
Draft
[E-Document] Agent-driven line matching infrastructure#7546
Conversation
Add IPrepareDraftGuard interface to allow skipping the AL-based PrepareDraft pipeline when matching is handled by the agent. - New IPrepareDraftGuard interface with SkipPrepareDraft() method - Default implementation returns false (AL pipeline runs normally) - Guard check at top of PrepareDraft procedure - Added to E-Doc. Proc. Customizations enum with DefaultImplementation - Extended app.json idRanges (6243-6249) New Historical Purchase Lines page and smart data loader: - Priority-based loader: same-vendor first, then cross-vendor - Matching by exact product code, exact description, LLM similar descriptions - Per-line results (different lines show different historical matches) - Capped at 5,000 records New line-level navigation actions on Draft Subform (Scope = Repeater): - Item References, Text-to-Account Mappings, Historical Purchase Lines, Chart of Accounts, Deferral Templates - EnsureEDocumentPurchaseHeader guard for agent session compatibility - Allocation Account No. field on Historical Lines page Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Infrastructure changes to the E-Document framework enabling agent-driven line matching. When the
AgentDrivenprocessing customization is active, the AL-based PrepareDraft pipeline is skipped so the Payables Agent can drive matching through page navigation.E-Doc. Proc. Customizationsenum allowing apps to skip PrepareDraftfalse(AL pipeline runs normally)Related NAV PR
NAV PR #244256 -- Payables Agent implementation + eval test suite (29 scenarios, 6 codeunits)
Related Work Items
AB#607916
Test plan
🤖 Generated with Claude Code