Executes when a user selects an action on a page.
This is called after the action properties, such as the, are invoked.
You typically use theto run objects such as pages, reports, and codeunits from an action. You can use the OnAction trigger when you require more processing than the can support, such as filtering data before a page is displayed or writing to the database.
To see an example of the OnAction trigger in use, see.
The OnAction trigger is not used on Role Center pages. If you add C/AL code to the trigger, the Role Center page will compile, but the C/AL code will be ignored at runtime.