Skip to the content
Gridkiln
Menu
Guide contents

Guide The jobs it is for

“Each manager needs their own slice”

What you are trying to do#

One report, seven regional managers. Today you filter, copy, save and email it seven times. You want one output that writes one file per region, named properly, and sends each manager their own file, with their own figures in the message.

Steps#

  1. Finish the table to send. Build the pipeline that gives the full result, with a column that says whose each row is (Region, Manager, Client).
  2. Add a file output. Under Outputs in the recipe, choose Add output (or Add an output… in the command palette) and pick the format: Excel workbook, Excel template fill to write into an existing workbook, CSV and the others. Choose From: the step whose table is written.
  3. Split it. In the output editor, open Split and distribute and choose Split by: the column, such as Region. Choose Into: a workbook per value, or one workbook with a sheet per value. A template fill makes one filled copy per value.
  4. Name the files. Put the split value and the month in the file name with Insert a variable into the name, so the name reads Sales_{Region}_{month}.xlsx. The variables of each piece are listed under Variables of each piece.
  5. Guard against the wrong column. At most sets the most pieces a run may make. “More pieces than this stops the run before anything is written”: a guard against splitting by a column with thousands of values.
  6. Send each piece where it belongs. Tick Send each piece where a mapping table says and choose the Mapping table: a step whose rows map each value to a folder or a person, typed in or read from a source such as managers.xlsx. Choose its Folder column, Recipient column and, if you like, a Copy column. Say what happens to a value with no row in the mapping table (a Default folder and Default recipient), and to a value the table names that has no rows this run.
  7. Add the message. Choose Add output › Message (email, Slack, Teams, web request). Under How it is sent, choose your mail account (“Mail goes out through your own account, so it arrives from you”). Under How many messages, choose One per piece and the split output: “Each region gets its own message, to the address in “Email” of the mapping table, with its own file attached”.
  8. Write the message. Give a Subject and a body. Variables in braces, such as the run date, row counts and totals, are filled in by each run, and in a split delivery each piece’s totals and tables cover only that piece. Add a Summary table, a Pinned chart, the check results, or a link that opens the run.
  9. Test it. Choose a Piece to preview to see the email as it arrives, then Send test: “Only you get it, marked as a test and naming who would get the real one. Nobody else is sent anything.”
  10. Hold for review (optional): tick Review before sending: hold every message until someone approves it. Held messages wait with their run (Review held messages… in the command palette); you release or discard them with a note.

What you will see#

  • Preview what the outputs write (in the Outputs section, or the command palette) lists every file each output would write and what happens to files already there, before anything is written.
  • A run writes the files only after every check passes, then sends the messages. A file is written completely or not at all.
  • The run record lists each file written and each message sent.

Setting up mail#

Mail is sent through your own account. Add one in Settings › Mail with New mail connection…: an SMTP server, or a Google or Microsoft account you sign in to (Settings › Accounts). For a signed-in account the app asks for permission to send only when you turn sending on for that account. Slack and Teams connections are in Settings › Slack and Teams, with the channel’s incoming webhook or a bot token.

When it goes wrong#

You see What to do
The run stops: more pieces than allowed The split column has more values than At most allows. Check you split by the right column, or raise the limit
A piece goes to the default recipient, or nobody Its value has no row in the mapping table. Add the row, or set a default
“Could not write Sales_East_2026-10.xlsx. The file is open in Excel.” The write rules decide: try again, write a copy alongside, or stop. See Write rules
A test arrives but a real run sends nothing Review before sending is on and the messages are held. Release them from Review held messages…
No message preview Run the pipeline once, or choose a piece: “With the current data: this pipeline has not run yet”

See also#