Skip to main content

Run VBScript function

Call one function in a VBScript file and return its result as text (Windows only).

Command in the Scripts toolkit · id ooa.script/run_vbscript_function · 6 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
FileFileNoVBScript file (.vbs) that defines the function.
FunctionStringYesFunction name.
ArgumentsListNoArguments, in order: numbers and true/false are passed as VBScript numbers and booleans, empty values as Empty, everything else as text.
Timeout (seconds)NumberNo300Maximum run time.
Fail on errorBooleanNotrueFail the step when the function raises an error; when false the error is returned in error.
ScriptStringNoCode that defines the function, typed in the agent, instead of a file.

Outputs​

OutputTypeWhat it is
resultStringValue returned by the function, as text.
outputStringOther text the script wrote.
errorStringError raised by the function when fail_on_error is false; empty on success.