New Attachment Received
Poll received Inbox messages for non-inline attachments, one event per attachment. Review the Gmail filter so only intended CSV reports reach the parser.
Workflow template
Import rows from Gmail CSV attachments into Google Sheets. Formatter reads the CSV header row and maps id, name, email, amount and note into worksheet columns A:E.
How it works
Poll received Inbox messages for non-inline attachments, one event per attachment. Review the Gmail filter so only intended CSV reports reach the parser.
Parse the trigger’s File with automatic delimiter detection and headers enabled. Produce column lists from the CSV’s id, name, email, amount and note headers.
Match the five prepared worksheet headers in A:E and append the corresponding column lists as multiple rows. Use RAW input so formula-looking values remain text.
The result
The included fictional CSV has a header row and three data rows. Its quoted comma and non-ASCII characters stay within their intended cells.
| id | name | amount | note | |
|---|---|---|---|---|
| 1 | Alex | alex@example.com | 12.50 | Simple row |
| 2 | Jörg Müller | joerg@example.com | 25.00 | Grüße aus Köln |
| 3 | Sam | sam@example.com | 7.99 | Hello, CSV |
Create the worksheet’s first-row headers before running. The CSV header identifies source columns; the worksheet header identifies destination columns. They are separate requirements.
Before activation
Connect Gmail and set a focused trigger search or label filter for the CSV reports you want. The prepared attachment trigger has no CSV-only search configured, so review this before activation.
Use a CSV with id, name, email, amount and note headers, or adjust the Formatter output mappings for your file. Create those exact headers in A:E of an existing worksheet, then connect Sheets and select that spreadsheet and worksheet.
Inspect the fictional CSV sample and mapped column lists. A Sheets Action test writes rows to the selected worksheet. Once the filter and mappings are correct, activate and send a fictional matching CSV attachment.
Both CSV and worksheet headers matter. Formatter treats the CSV’s first row as headers. The Sheets action checks each mapped column letter and worksheet header. Renaming a destination header requires refreshing columns and reviewing the mapping.
Import column lists, without an extra Loop. The Formatter supplies lists for id, name, email, amount and note. Create Multiple Spreadsheet Rows writes those lists together. If you change the mapping, list lengths must agree; header or column mismatches fail rather than silently choosing another column.
Filter attachments before parsing. The trigger emits non-inline attachments, not only CSV files. Restrict the source to the intended reports. Multiple matching attachments can create multiple imports, and pending backlogs can continue across polls.
An append-only data import. The workflow does not look up existing IDs or update previous rows. Reruns can append the CSV again. RAW prevents formula evaluation, and worksheet access controls who can read copied names and email addresses.
Yes. Create id, name, email, amount and note in A:E, or change the destination mapping to match your headers. This action validates mapped worksheet headers and does not create them for you.
No. Formatter produces column lists, and Create Multiple Spreadsheet Rows writes them together. The prepared workflow has no separate Loop step.
The attachment trigger is not inherently CSV-only. Review and narrow the Gmail search or label filter before activation so other file types do not reach the CSV parser.
No. The workflow appends rows and has no existing-ID lookup. A manual rerun can import those rows again; RAW preserves formula-looking cell values as text.
Build a searchable correspondence register from new inbox emails matching your Gmail search.
View template →