4
Tests has indicated the Page level trigger is running in correct sequence. The correct sequence of Validation Trigger should be as follows from the first one to last one as follows.

1) Page - OnBeforeValidate Trigger
2) Table - OnValidate Trigger
3) Page - OnAfterValidate Trigger
4) Page - OnModifyRecord/OnInsertRecord Trigger
5) Table - OnModify/OnInsert Trigger

Can this order be implemented so that we can reliably use these triggers in logically. It will also really useful to add additional parameter to the event subscription such as "Skip Trigger" as VAR. Once "Skip Trigger" is set to TRUE in the event subscription function, system will not run any further trigger of it's kind.

For example if "Skip Trigger" is set to TRUE in Page - OnBeforeValidate Trigger, Table - OnValidate Trigger and Page - OnAfterValidate Trigger will not run, but page and table level Modify/Insert trigger will run. But the value needs to be set without running the trigger.

If "Skip Trigger" is set to TRUE in OnModifyRecord/OnInsertRecord Trigger in Page any of the existing OnModifyRecord/OnInsertRecord Trigger in page as well as OnModify/OnInsert Trigger in Table will not run. But record needs to be inserted/modified without running the trigger.

If "Skip Trigger" is set to TRUE in OnModify/OnInsert Trigger in Table is set to True any of the existing OnModify/OnInsert Trigger in Table will not run. But record needs to be inserted or modified without running the trigger.
Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future.

Best regards,
Business Central Team

Comments

R

This will really help to customise solution to fine adjust the solution as per customer need

Category: Development