Guide Walkthroughs
Walkthrough 2: a monthly report that sends itself
The analyst from walkthrough 1 turns her work into a report that builds itself on the 2nd working day of each month, checks itself, waits for her approval, and sends each of seven regional managers their own workbook. The figures are illustrative.
1. Read whichever month is due#
She adds a parameter: in the Parameters tab (⌥9 / Alt+9), Add parameter, named month, a date written as a month (yyyy-MM), with the default A period (last month…). The tab now shows its value for previews and that it defaults to the first day of last month.
Then she points the source at a pattern instead of one file. She right-clicks the Sales source in the Library and chooses Use a pattern…. In “Where Sales reads from”, A pattern is chosen; she types exports/sales_ and clicks the {month} chip under Insert into the pattern, then types .csv. Parameters it uses says the pipeline’s month parameter fills it, with last month as the value for previews, and the line under the pattern shows the file it finds: “Matches: sales_2026-10.csv”. Under Change it for she leaves Every pipeline that reads Sales (the source itself), and chooses Save.
The Parameters tab now lists the source under Used in: “source Sales (exports/sales_{month}.csv)”. To preview another month, she types it in Value for previews.
2. Look up the product list#
The product list is an Excel file on a shared drive. She right-clicks the product code column and chooses Add a step › Combine › Look up values, then chooses the product list in Look up in. Before she applies it, the lookup report says:
14,807 of 15,002 rows matched (98.7%) 195 rows did not match, in 14 product codes
and lists the 14 codes with the nearest candidate in the product list. A lookup never adds rows. She clicks Apply, then adds a check on the lookup step: Add check › Every row finds a match, named “no unmatched product codes”, with When it fails set to Warn, so a new product code is flagged in the report without stopping the run.
3. Three checks that stop the run#
On the last step she adds three more checks, each with When it fails set to Stop the run:
- Unique: “OrderID is unique”.
- Row count compared with the last run: “Row count is within 25% of the latest run”.
- Rows rejected: “No rows were rejected”.
The recipe shows them under Checks, grouped by the step they check, each with its result on the current data (“Passed:” or “Warned: 195 unmatched”).
4. One filled workbook per region, mailed to its manager#
Under Outputs she chooses Add output › Excel template fill and gives Monthly_Report.xlsx as the Template: “The workbook to fill … It is never changed.” She chooses Look inside to list the workbook’s tables, named ranges and sheets, and picks the one the rows go Into: here the Excel table on the Data sheet. The template’s formulas, pivot tables, charts and formatting stay, and refresh when the workbook is opened.
In Split and distribute she splits by Region, with the file name Monthly_Report_{Region}_{month}.xlsx, and ticks Send each piece where a mapping table says, choosing the managers table (a source read from managers.xlsx) and its Recipient column.
Then she adds a message: Add output › Message (email, Slack, Teams, web request), sent through her own mail account, One per piece of the template fill, with the month’s total in the text. She checks one region’s email with Piece to preview and Send test, which only she receives.
5. The workflow#
She chooses Run options › Schedule… (the same as “Schedule this pipeline in a workflow” in the command palette). The workflow opens in the Workflows view with the pipeline as its first step. She builds it out:
- Triggers tab: Add a trigger › On a schedule, Monthly, on the nth working day, working day 2, at 07:00, time zone Europe/London, with the English public holidays as the calendar. The workflow’s header shows when it runs next.
- Add step › Review gate after the pipeline: Reviewer 1 is Dana, and under When nobody answers she sets After (minutes) to 120 and Or by (time of day) to 09:00, whichever comes first, and Then to Reject the run.
- Add step › Deliver after the gate: it writes the outputs and sends the messages of the reviewed run.
- Add step › File housekeeping after delivery: move the input file to
exports/archive/. - Settings tab: Deadline alert, Alert if it has not succeeded by a time, 09:00.
The chart reads, from start to end: “Starts. At 07:00 on the 2nd working day of each month, UK time, skipping English public holidays”, then the pipeline, the review gate, Deliver and the archive step. She switches the workflow on.
6. On the day#
At 07:00 on the 2nd working day the background agent runs the pipeline. Every check passes, and nothing is written or sent while the run waits for review. A desktop notification arrives:
Ready for review: Monthly sales 15,002 rows, all checks passed, revenue up 4.2% on last month. [Approve] [Review]
She clicks Review. The review shows the same headline, and under it: “Nothing has been delivered yet. Approving writes 7 files and sends 7 emails.” Below are What changed since last time (rows read this month against last month), the checks, the files that will be written and the messages that will be sent (“7 messages, sent once approved”). She clicks Approve and deliver (⌘↵ / Ctrl+Enter). The review records “Approved by Dana”, the seven files are written, and seven managers receive their own workbook. The input file moves to the archive folder, and the deadline passes without an alert, because the run succeeded before it.
She could also have approved straight from the notification’s Approve button, or from the run’s record in the Runs view (Review…), or with Review the runs waiting for you in the command palette.
If something had gone wrong#
- A failing check would have stopped the run before the review: the notification would have said which check and that nothing was written. See Walkthrough 4.
- Reject… asks for a reason (“Reason (recorded in the run)”) before Reject run; nothing is written or sent, and the input file stays where it is.
- Had nobody answered by 09:00, the gate would have rejected the run, and the deadline alert would have said the workflow had not succeeded.