# Run child workflow

Node type `browser_applySubProcess`

## What it does

Run another saved workflow using inputs mapped to its initial variables.

## Desktop client configuration

![Run child workflow configuration in the desktop client](/assets/apply-sub-process.515ac774be65e1f0e4b82b10b3c7dc215b0a5eac8663d188f8f5b995a5ab0cd7.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `processId` | `string` | No | — | Select workflow |
| `processVariable` | `object` / array<`object`> (supports variable references) | No | — | Initial parameters |


## Mode requirements and limits

- Required `processId`
- processId must be static and exist in dependencies as an exact pin. processVariable must match the child workflow's variable types.
- Validation code `RPA_NODE_INPUT_INVALID`
- processId is the ID of a real template that is pinned as a dependency. It cannot be a sample value such as demo_login/demo_collect or a dynamic reference. processVariable is {key,value}[] or an object, and its field names correspond to the child workflow's initial variables.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `processId` | `literal` |
| `processVariable` | `literal`, `template` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `processId` | `string` |
| `version` | `string` |
| `runId` | `string` |
| `outputs` | `object` |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`. `username` is a initial parameter declared in `workflow.variables`. Replace `processId` with the ID of your child template, and list the same template in the template's `dependencies` as `{processId, revisionId}`.

```json
{
  "id": "call_login",
  "type": "browser_applySubProcess",
  "data": {
    "title": "Run the shared sign-in workflow",
    "browserAction": "applySubProcess",
    "browserUi": {
      "inputs": {
        "processId": "1890000000000000001",
        "processVariable": {
          "username": "${username}"
        }
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)