- Before this lesson
- Working with CSV
- You will learn to
- Read, filter and total a CSV
- Produce two output files
- Change behaviour with a variable
- Sample files
- csv-sales-summary.station.json · sales.csv
Scenario. Every week you open a sales export, filter one region, add up the value and send a two-line summary.
Input and output
- Input:
sales.csv(synthetic: Date, Region, Product, Units, UnitPrice) in the practice folder. - Output:
sales-North.csv(only North) andsales-North-report.txtwith the total.
Steps
- Put
sales.csvinto the practice folder. - Import
csv-sales-summary.station.json. Checkfolderandregion. - Run.
How it works
CSV Operation reads the file into a table; Filter Table keeps the region; For Each Row reads Units and UnitPrice of each row with Get Key and adds units × price to total; CSV Operation write and Write File produce the outputs.
Optional improvements
- Ask for the region with an Input Dialog (dropdown: North, South, East).
- Add the date to the file names.
- Add validation from Input validation.
Activities in this lesson
CSV Operation · Filter Table · For Each Row · Get Key · Math · Write File
Saved only in this browser.
Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.