Loop: repeat for every item
An order has lines, an export has rows, an API returns a list. With a Loop you run the same steps for every item in such a list. What a step inside the loop changes is kept for the next pass: that is how you add up or keep track of what you came across.
Open Flow and create a workflow
In the portal, under Environments, click Development and there Open; Flow opens in a new tab. There, click + next to General, choose New workflow and give it a name. A new workflow starts with an Event trigger: the point where it begins.
Start at zero
Add Transform data with a field total = 0. That is the counter the loop adds to in a moment; without a starting value the field does not exist on the first pass.
Add the loop
Choose Loop in the library. Under Which list you type the name of the list (without {{ }}), and you give the current item a name: line. In the steps inside the loop you read the item as {{line.price}}.
Add up, per line
At the bottom of the loop, choose Transform data under Add step: it lands in the loop's area and runs for every line. Set total to = round(total + line.quantity * line.price, 2): the previous total plus this line.
Put the steps in one line and save
Select the steps (click the first, and the others while holding Shift) and click Align horizontally: they then stand in one line and you read the workflow from left to right; a branch (such as No of an If / Else) gets its own row below. Fit to view puts everything in sight; then Save.
This guide was carried out step by step on 22 Oct 2026 by an automated test on Flow (version 3e563176).



































