Flow.Documentation
Beginner

A workflow that decides

9 steps± 6 minVideoVerified 22 Oct 2026
  1. Step 1 · Open your development environment
  2. Step 2 · Create a workflow
  3. Step 3 · Give the trigger sample data
  4. Step 4 · Add an If / Else
  5. Step 5 · An end for approved
  6. Step 6 · An end for too high
  7. Step 7 · Connect the steps
  8. Step 8 · Try it with 750 euros
  9. Step 9 · And now with 2500 euros

A lot of work is a simple rule: below a certain amount you approve a quote yourself, above it someone has to look along. You build such a rule with an If / Else step. Each outcome finishes in an End step: successful with a result, or failed with a clear reason. You try the workflow with two examples and read what it returns.

Watch the whole guide as a video9 steps in one film
Step 1 / 9

Open your development environment

In the portal, under Environments, click Development, and there Open. Flow opens in a new tab.

  1. Click Development
Open your development environment · Click Development
  1. Click Open ↗
Open your development environment · Click Open ↗
Open your development environment · Flow, with the explorer on the left and the module General.
Step 2 / 9

Create a workflow

Click + next to General, choose New workflow and give it a name. It starts with a trigger: the moment it begins.

  1. Click Add to General
Create a workflow · Click Add to General
  1. Click New workflow
Create a workflow · Click New workflow
  1. In Workflow name, type Review a quote
Create a workflow · In Workflow name, type Review a quote
Step 3 / 9

Give the trigger sample data

Click the trigger. Under Sample data is what the workflow starts with when you try it here; later the real request arrives there. Choose Code and put in a customer and an amount.

  1. Click the trigger
Give the trigger sample data · Click the trigger
  1. Click Code
Give the trigger sample data · Click Code
  1. In the sample data, type {"customer": "Jansen Bakery", "amount": 750}
Give the trigger sample data · In the sample data, type {"customer": "Jansen Bakery", "amount": 750}
Step 4 / 9

Add an If / Else

Add node opens the library. Choose If / Else and write down the rule: which field, which comparison, which value. Here: is the amount less than or equal to 1000?

  1. Click Add node
Add an If / Else · Click Add node
  1. Click If / Else
Add an If / Else · Click If / Else
  1. In Name, type Within budget?
  2. In Which field to check?, type amount
  3. In **Comparison Equals Does not equal Is greater than Is greater than or equal to Is **, choose Is less than or equal to
  4. In Value, type 1000
Add an If / Else · In Name, type Within budget?; In Which field to check?, type amount; In **Comparison Equals Does not equal Is greater than Is greater than or equal to Is **, choose Is less than or equal to; In Value, type 1000
Step 5 / 9

An end for approved

Choose End in the library. This one ends successfully; under What does the workflow return you set the result. With {{field}} you take a value from the data.

  1. Click End
An end for approved · Click End
  1. In Name, type Approved
An end for approved · In Name, type Approved
  1. Click Code
An end for approved · Click Code
  1. In the result, type {"decision": "approved", "customer": "{{customer}}", "amount": "{{amount}}"}
An end for approved · In the result, type {"decision": "approved", "customer": "{{customer}}", "amount": "{{amount}}"}
Step 6 / 9

An end for too high

Add another End and choose Failed, with a message. The message is the reason everyone reads back on the run later; {{field}} works here too.

  1. Click End
An end for too high · Click End
  1. In Name, type Too high
  2. In How does the workflow end?, choose Failed, with a message
  3. In Message, type Quote of {{amount}} euros is too high to approve yourself
An end for too high · In Name, type Too high; In How does the workflow end?, choose Failed, with a message; In Message, type Quote of {{amount}} euros is too high to approve yourself
Step 7 / 9

Connect the steps

An If / Else has two exits: Yes (top) and No (bottom). Click an exit, then the dot on the left of the step it should lead to. Fit to view first puts everything in sight.

  1. Click Fit to view
Connect the steps · Click Fit to view
  1. Click the trigger's exit
Connect the steps · Click the trigger's exit
  1. Click the rule's entry
Connect the steps · Click the rule's entry
  1. Click exit Yes
Connect the steps · Click exit Yes
  1. Click entry Approved
Connect the steps · Click entry Approved
  1. Click exit No
Connect the steps · Click exit No
  1. Click entry Too high
Connect the steps · Click entry Too high
Connect the steps · Three connections: trigger → rule, Yes → approved, No → too high.
Step 8 / 9

Try it with 750 euros

Save and click Run. At the bottom, under Output, you see every step: the rule came out TRUE, so the workflow ended at Approved, with the result you set.

  1. Click Save
Try it with 750 euros · Click Save
  1. Click Run
Try it with 750 euros · Click Run
Try it with 750 euros · Status: Completed.
Try it with 750 euros · The result: decision approved, with customer and amount.
Step 9 / 9

And now with 2500 euros

Put a higher amount in the trigger and run again. Now the rule goes to No, and the workflow ends as failed — with your message as the reason. A caller sees straight away why.

  1. Click the trigger
And now with 2500 euros · Click the trigger
  1. Click Code
And now with 2500 euros · Click Code
  1. In the sample data, type {"customer": "Jansen Bakery", "amount": 2500}
And now with 2500 euros · In the sample data, type {"customer": "Jansen Bakery", "amount": 2500}
  1. Click Run
And now with 2500 euros · Click Run
And now with 2500 euros · Status: Failed.
And now with 2500 euros · The reason: the 2500 euro quote is too high.

This guide was carried out step by step on 22 Oct 2026 by an automated test on Flow (version 3e563176).