Templates / 📦 Electronic data interchange (EDI) message parsing with Gmail and Google Sheet

📦 Electronic data interchange (EDI) message parsing with Gmail and Google Sheet

Ready for 3.0

by Samir Saci ✓ · 2,748 views · created 2025-03-19 · Document Extraction

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 12 nodes and runs on Gmail events. Along the way it connects Google Sheets and Gmail.

How it runs

Trigger: On Gmail events.

  1. Subject includes EDI (If): checks a condition and branches into true / false
  2. Get Email (Gmail): get
  3. Extract Body (Edit Fields (Set)): sets 1 field: body
  4. Parse EDI Message (Code): runs custom JavaScript code
  5. Order Information (Edit Fields (Set)): sets 5 fields: documentType, documentNumber, orderDate…
  6. Flatten Data to Orderlines (Code): runs custom JavaScript code
  7. Order Info + Orderlines (Merge): merges the data from its input branches
  8. Split Out: splits a list into separate items
  9. Order Type (If): checks a condition and branches into true / false
  10. Return Orders (Google Sheets): append

…plus 1 more step. See the full node list below.

Services it uses

Google SheetsGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Email Trigger).

Nodes used (8)

From the author

Tags: Supply Chain Management, Logistics, Transportation, Data Transmission Context Hey! I'm Samir , a Supply Chain Engineer and Data Scientist from Paris founder of LogiGreen Consulting We help small and medium businesses improve their logistics processes…

Excerpt from Samir Saci's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.