Run scripts from script

Detached scripts can be run from other scripts

scripts.run(scriptId: string, arguments?: object[])

Run a detached

Arguments:
  • scriptId

  • arguments

Returns:

An object that contains attribute :

  • success (boolean) Indicates whether the operation was successful.

  • result (object) Holds a result generated by the detached script.

  • message (string) A message containing additional information about the success or the failure of the request.

class scripts.ScriptExecutionResult()

Represent the result of a script execution.

ScriptExecutionResult.getMessage()

Get message reported at the end of the script.

ScriptExecutionResult.isSuccess()

Get success status reported at the end of the script.