Add integration event OnAfterGetRecordOnAfterConfirmAndModify in the General Posting Setup dataitem OnAfterGetRecord trigger after Modify. - #10334
Conversation
Agentic PR Review - Round 1Recommendation: Accept with SuggestionsChange type: Extensibility / integration-event request (low-risk, purely additive). What it does: Adds Assessment: The placement is correct (after SuggestionsS1 - Reconsider the event name before merge (Low, naming) S2 - Align the PR title with the declared name (Low, consistency) A never approves or rejects - a human makes the final call.
|
…General Posting Setup dataitem OnAfterGetRecord trigger after Modify
673ac4d to
4cd8e0f
Compare
Agentic PR Review - Round 2Recommendation: AcceptWhat this PR doesThis PR adds the integration event OnAfterGetRecordOnAfterConfirmAndModify in report 87, Copy - General Posting Setup. The event is raised only after the user confirms the copy and after Modify() persists the target General Posting Setup record. The current diff matches the event-request scenario from AB#646562 and the PR description. The new event is inside the existing confirm block, so it does not run on Cancel. It is raised after the same Modify() call that the request depends on, and it passes the target setup by �ar plus the source setup by value. This is a narrow, additive extension point and does not change existing copy behavior. Status of previous suggestions
New observations (commits since round 1)None - the new head addresses the previous naming and title suggestions. The prior SHA is no longer reachable from the fetched PR history, so I reviewed the full current three-dot diff against main and only attributed the one net PR hunk. Risk assessment and necessityRisk: This is a public integration event in a financial setup report, so the main risk is freezing the event name and timing as a long-term extension contract. The final placement after Modify() and inside the confirm block matches the requested contract. Adding an event publisher is additive and does not break existing subscribers. Necessity: The change is justified because the existing OnAfterCopyGenPostingSetup event runs before the user confirms and before the record is modified. Partners need a hook that runs only for the confirmed, persisted copy. No test is needed for this pure event request because it does not change behavior or guard a posting, financial, or data-integrity path.
|
What & why
Report 87 "Copy - General Posting Setup" only calls Modify when the user confirms, and there was no event inside that block. So, partners could not run follow up logic that should happen only on Yes and only after the record is modified.
This adds the integration event OnAfterGetRecordOnGeneralPostingSetupOnAfterConfirmAndModify right after Modify in the confirmation block. It is purely additive and changes no existing behavior.
Fixes AB#646562
How I validated this
What I tested and the outcome
No test added since this is an additive event with no behavior change, following the usual practice for event requests.
Risk & compatibility
Low. Adds one integration event, nothing else. IncludeSender is true to match the sibling OnAfterCopyGenPostingSetup. No breaking changes.