The Pass block is used to end an automation case run in the _passed_ state. This block is essential to explicitly indicate that a flow has completed successfully.

**Important**: Without a **Pass** or **Done** block in a flow, Leapwork will automatically mark the end result as a _Fail_. Always include one of these blocks to signal successful completion.

Need an example? See the [Introduction](/content/services/learning-center/introduction-virtual-automation-1/index.html) lesson.

Fully expanded, the **Pass** block shows the following properties:

**Note:** The screenshot on this page uses the **Elegance Design**, introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start
1. Drag **Pass** onto the canvas.
2. Connect the block to the end of your flow to finalize the case in the _Passed_ state.
3. (Optional) Define a **Pass message** and add fields to include dynamic values.
4. Run the flow when it’s ready.

## Building block parameters

Parameters
1. **Pass message**: Define a message to be logged when the case passes. This can contain tokens for field values.
2. **Text fields**: Allow the use of external values in the pass message. Insert tokens by right-clicking in the _Pass message_ field and selecting _Insert token_.
3. **Add field**: Add custom fields to be referenced as tokens in the _Pass message_.

## Resources

| **Topic** | **Description** |
| --- | --- |
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq) | Common questions about creating, running, and managing flows in Leapwork. |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting) | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.
