---
url: >-
  /flow/guide/administering-flow/configuring-flow/actions/action/action-steps-tab/file-router-action.md
---

# File Router Action

![](/flow/images/action-action-steps-file-router-action-.jpg)

### Fields

| Field Name | Description |
|---|---|
| Active | Select to make this step active. You can skip this step by deactivating it |
| Source Data | Select the File Definition whose file you wish to route to different locations |
| [Routing Events](#routing-events) | Create routing events to test conditions on whether to route the file. For each test you can assign a File Connection where the file will be routed to if the test succeeds. |

## Details

### Routing Events {#routing-events}

Create routing events to test conditions on whether to route the file. For each test you can assign a File Connection where the file will be routed to if the test succeeds.

Use the [Script Editor](/flow/guide/administering-flow/configuring-flow/common-dialogs/script-editor/) to enter you script code for the routing event test. The code should perform the necessary logic and set the Value parameter to either True or False. If True the file will be routed to the linked File Connection and the File Router Action will end and move to the next Action step. If False the file will not be routed to the linked File Connection and the next routing event in the list will be executed.
