TestPage.RunPageBackgroundTask(Integer [, var Dictionary of [Text, Text]] [, Boolean]) Method

Version: Available or changed with runtime version 4.0.

Runs the page background task codeunit in the current session. Note that by default, no triggers are invoked at this point.

Syntax

Results :=   TestPage.RunPageBackgroundTask(CodeunitId: Integer [, var Parameters: Dictionary of [Text, Text]] [, RunCompletionTriggers: Boolean])

Parameters

TestPage
 Type: TestPage
An instance of the TestPage data type.

CodeunitId
 Type: Integer
Specifies the ID of the codeunit to run.

[Optional] Parameters
 Type: Dictionary of [Text, Text]
Specifies a collection of keys and values that are passed to the OnRun trigger of the codeunit that runs when the page background task session is started.

[Optional] RunCompletionTriggers
 Type: Boolean
Runs the completion triggers after the completion of the code unit. Default value is false.

Return Value

Results
 Type: Dictionary of [Text, Text]
The dictionary of results for the page background task.

See Also

TestPage Data Type
Get Started with AL
Developing Extensions