The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

OnAction Trigger

Executed when a user selects an action on a page.



Applies To

  • Page actions


This is called after the action properties, such as the RunObject Property, are invoked.

You typically use the RunObject Property to run objects such as pages, reports, and codeunits from an action. You can use the OnAction trigger when you require more processing than the RunObject Property can support, such as filtering data before a page is displayed or writing to the database.


The OnAction trigger is not used on Role Center pages. If you add AL code to the trigger, the Role Center page will compile, but the AL code will be ignored at runtime.

See Also

RunObject Property
Page and Action Triggers
Page Properties