Skip to main content
Version: 5.7.0

Calling Other Scripts

To invoke a script from within another script, simply call the bridge.callScript() method, specifying the name and parameters for the script to call.

var parameters = { "arg1": 5, "arg2": 10 };
var scriptResults = bridge.callScript( "anotherScript", parameters );
if (scriptResults.status == 200 && scriptResults.data.success === true) {
// process scriptResults.data.response appropriately
// ...
}

For more advanced scenarios (i.e. scheduled scripts, etc.), call the appropriate

Script service
method, as you would any other API call.