Execute Javascript String

1 minute to read Download PDF Edit

Description

Executes the provided javascript snippet. Runs asynchronous when Timeout is set. Returns a string.

Usage

Pass the script you want to execute as parameter for the action. You have to set a string as return value, otherwise the action will fail. The optional arguments are stored in an array and can be used in your script. For example type “arguments[0]” to get the value of the Argument 0 parameter.

Input Parameters

Name Datatype Required Description
Script String yes The JavaScript source code you want to Execute
Timeout(ms) Integer no The time in milliseconds for the script to finish
Argument 0 any no Argument to use in the JavaScript code
Argument 1 any no Argument to use in the JavaScript code
Argument 2 any no Argument to use in the JavaScript code
Argument 3 any no Argument to use in the JavaScript code

Return Value

Name Datatype Description
Script Result String The return value set in the script.