script.execute deprecated
Deprecated
Use process.execute instead.
Runs another process and waits for it to finish. Prompt values can be passed to it.
js
script.execute(processName, promptName1, promptValue1, promptNameN, promptValueN)Parameters
| Parameter | Type | Description |
|---|---|---|
processName | string | The process's name. |
promptName1 | string | The name of a prompt the process takes. |
promptValue1 | string | The value for that prompt. Add more name and value pairs as needed. |
Returns
booleantrue if the process ran successfully, false if it aborted.
Examples
js
const success = script.execute("Dimension - Department - Add", "deptName", "Finance");