---
url: /process-functions/script-execute.md
description: This function is used to run another process.
---

# script.execute

This function is used to run another process. Prompt values can be passed to the sub process.

```js
script.execute(processName, prompt_name_1, prompt_value_1, prompt_name_N, prompt_value_N)
```

#### Parameters

* `processName` - the name of the process to run.
* `prompt_name_1` - the first prompt which the sub process requires.
* `prompt_value_1` - the first prompt's value which the sub process requires.

#### Example

```js
let success = script.execute("Dimension - Department - Add", "deptName", "Finance");
```

The result in success will be either true or false depending on if the sub process aborted or not.
