[E-document] Fix file actions for incoming and outgoing E-Documents - #11588
Milica Đukić (djukicmilica) wants to merge 1 commit into
Conversation
Good Sense Reviewer - Round 1Recommendation: Accept with SuggestionsWhat this PR doesThis change separates source-file preview from exported-file access. Incoming records only show source preview when an unstructured source entry exists, while outgoing records get a log-based exported-file path. The code matches the reported failure: Problem-solution fitFit: Strong The bug is specifically about outgoing documents using an inbound-only source file field. The diff removes that action from invalid records, adds a clear error for direct calls, and exposes the existing log export path for outgoing documents. SuggestionsS1 (🟠 Moderate): Add regression coverage for file actions Risk assessment and necessityRisk: Low to moderate. The change is limited to E-Document pages and Necessity: The change is justified because outgoing E-Documents can otherwise show a misleading source-file action and fail with a low-level record error. The scope is targeted: it keeps incoming source preview, uses existing logs for exported files, and filters generic log navigation to the selected document.
|
|
Why
The View file action is available for outgoing E-Documents even though it reads the inbound-only unstructured source entry. This causes a raw record-not-found error and leaves users without a clear route to exported payloads.
Bug: https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/648718
Summary
Fixes
AB#648718