Open an Email File
Open an Email File opens an email message kept as a file (.eml, type message/rfc822). It returns the message’s sender, recipients, date, subject and text, and saves every file attached to it into a file store, so the next nodes can read, compare or forward those files by reference. You find it on the node picker’s Transform & data shelf.
The node has one input handle and one output handle.
When you need it
Section titled “When you need it”A mailbox connected to an email trigger already opens a message forwarded as an attachment: its files arrive in the payload with the mail’s own. This node is for a message that reached your flow another way:
- a flow that reads a Microsoft 365 mailbox itself, for example to catch up on mail from before the mailbox was connected. Graph hands a forwarded item over as a message file from
…/attachments/{id}/$value; save that response as a file and pass the file here. - an
.emlsomeone dropped into a file store. - an
.emlthat arrived as an attachment, when you want its files in a store rather than in the payload.
To only read what a message says, without saving its files, use Read a File as Text: it reads an .eml as its headers, its text and a list of its files.
Where the files go
Section titled “Where the files go”Each file is saved into Keep its files in, or into the store the email file itself is in when that is empty. An email attachment is in no store of your workspace, so with one as the source you must choose a store.
Folder defaults to a folder named after the message’s subject, beside the email file. A message graph/2026-10-07/FW tekeningen.eml with the subject Tekeningen gevelroosters saves its drawing as graph/2026-10-07/Tekeningen gevelroosters/drawing-A.pdf.
A message forwarded inside the one you open is saved as an .eml and opened into a folder of its own, named after its subject. Two levels are opened, as the mailbox opens them: the message itself and one forwarded inside it. A message forwarded deeper than that is saved whole, as an .eml, with a note saying so.
Two files of the same name in one message, such as two inline image001.png logos, are saved as image001.png and image001 (2).png. Opening the same message again writes the same paths, so a store that keeps versions keeps the earlier copies as versions.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Email file (source) | string ✦ (required) | — | The email file to open: a stored .eml, given as a version id, an object id, “Store name/path/to/message.eml”, or an email attachment id. |
Keep its files in (objectStoreId) | string ✦ (optional) | — | The file store to keep its files in. Empty means the store the email file is in. |
Folder (folder) | string ✦ (optional) | — | The folder its files go in. Empty means a folder named after its subject, beside the email file. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Email file picks a stored file. Type part of its path, and the field lists
the matching files of every file store in your workspace as Store › path, the
newest first, 50 at most. A picked file is saved as its object id. For an email
attachment or a file another node saved, click Insert a value ({x}) and
write an expression, as in the example below. A reference typed in before the
field became a picker stays as it was.
Output
Section titled “Output”{ "from": "Bas de Vries <bas@supplier.example>", "to": "werkvoorbereiding@bouwgroep.example", "cc": null, "date": "2026-10-07T06:42:00+00:00", "subject": "Tekeningen gevelroosters", "messageId": "abc123@supplier.example", "inReplyTo": null, "text": "Zie bijlage.", "storeId": "01K2...", "folder": "graph/2026-10-07/Tekeningen gevelroosters", "attachments": [ { "id": "01K3...", "filename": "drawing-A.pdf", "mimeType": "application/pdf", "sizeBytes": 2483112, "isInline": false, "key": "graph/2026-10-07/Tekeningen gevelroosters/drawing-A.pdf", "note": null } ]}| Field | Description |
|---|---|
from, to, cc |
Each address as Name <email>, several separated by commas, or null when the message has none. |
date |
The message’s date in ISO 8601, or the header as written when it cannot be read as a date. |
text |
The message’s plain-text body, or its HTML body as text when it has no plain-text part. |
attachments |
Every file saved, including those of forwarded messages, in the shape the email trigger gives its attachments. id is the saved version, so a run replayed later reads the file this run saved. |
An entry with a null id was not saved, and its note says why: most often the file is larger than the store accepts for one file. The other files are still saved.
Worked example
Section titled “Worked example”Read every drawing in a message forwarded as an attachment, fetched from Microsoft 365:
-
REST Request:
GET https://graph.microsoft.com/v1.0/me/messages/{message id}/attachments/{attachment id}/$value, with Response set tofileand a file store in File store. -
Open an Email File with Email file
{!! $prev->object->versionId !!}. -
Read a File as Text with Source:
{!! json_encode(array_values(array_filter($prev->attachments, fn ($a) => $a->id !== null && $a->mimeType === 'application/pdf'))) !!}
Limitations
Section titled “Limitations”- A message larger than the size limit for one incoming email is refused before it is read. Your operator sets that limit.
- A file that is not an email message is refused. A message is recognised by its
From,Subject,Message-IDorDateheader. - A file larger than the store accepts for one file is listed with a
noteand not saved. - Outlook’s
.msgformat is not an email file in this sense and is not read.
Related
Section titled “Related”- Email trigger: mail a connected mailbox receives, with forwarded messages already opened.
- Read a File as Text: read an
.emlas text without saving its files. - File Details: the ways a stored file can be named.
- Files: creating a store, retention, versions and sharing.