# 📨 Arguments

## ArgumentsArguments

Arguments are parameters that transfer data between workflows. When a workflow calls another workflow, they are used to send data to the called workflow or to receive results from it.

Each argument is defined with a name, a data type and a direction. The direction of the argument determines how data is passed into the workflow and how it is received from the workflow.

| Direction | Description | Example |
|-----------|-------------|---------|
| **In**    | Passes a value from outside into the called workflow. | Sending the order number to be processed |
| **Out**   | Passes a result out of the called workflow. | Returning the operation result or the path of the generated report |
| **In/Out** | Allows the incoming value to be used inside the workflow and the updated value to be passed back. | Returning an incoming counter value after updating it |

### Adding an Argument


1. Open the **Arguments** panel.
2. Click the **+** (**Create Argument**) button.
3. Give the argument a meaningful name.
4. Select the data type.
5. Set the direction of the argument (`In`, `Out` or `In/Out`).
6. Define the argument in the relevant workflow and make the required mapping in the calling workflow.

**Points to consider:**

* The argument name should clearly express its purpose.
* The data type should be compatible with the data to be passed.
* The argument direction should be chosen according to the data flow.
* Argument mappings should be checked in sub-workflow calls.

###  ![Create Argument Window](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/a406920a-3878-4f5f-8f8b-7593ba62e617/50d65d1e-c9d3-439a-8532-e0268d91434a/en-arg-create-final.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20261123%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261123T234500Z&X-Amz-Expires=86400&X-Amz-Signature=cbd7ae1121658d095dab3248834bca45ca8f43e897df8618d1395fbc6234b560&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =423x298")


---

### Find References

To view where an argument is used in the workflow, right-click the argument in the **Arguments** panel and select the **Find References** option.

The result list that opens shows the places where the argument is used. Double-click a row in the list to focus directly on that usage.

This feature makes it easier to track argument usage, quickly find the related activities and assess the impact of changes.


---

### Using Arguments in Sub-Workflows

When calling a sub-workflow, the arguments defined in the called workflow are mapped to the appropriate values in the calling workflow.

For example, an `In` argument can be used to send an order number to the sub-workflow, and an `Out` argument can be used to return the operation result produced in the sub-workflow to the main workflow.

When mapping arguments, make sure the data types are compatible and the correct direction is selected.