RunObject Property

Version: Available or changed with runtime version 1.0.

Sets the object you want to run immediately when the action is activated.

Applies to

  • Page Action

Syntax

The following example illustrates how to use RunObject on the query object MyQuery (replace the query keyword with page, report, or codeunit to use RunObject on these data types)

RunObject = query "MyQuery";

Remarks

Use this property to select the object you want to run.

The following object types are supported: pages, reports, codeunits, and from version 23.0 also queries.

Use the following properties to set parameters for the object you want to run:

Note

With Business Central 2025 release wave 1, actions that have the RunObject property specified, use the Caption, ToolTip, AboutText, and AboutTitle properties of the targeted application object, if none of these properties are specified on the action itself. This ensures consistency and reuse. You can override these values by specifically setting them on the action.

Properties
RunPageView Property
RunPageLink Property