Email: Save email attachments

Save email attachments to disk.

Help Centre › Building Processes

Save email attachments to disk.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Save email attachments under Email › Read & Search, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathYesEnter the file path, or use a variable such as {folders::desktop::path}\file.txt.
VariableNoName of the variable where the result will be stored
FilterNoGlob pattern to filter attachments by name (e.g. *.pdf, *.xlsx, report*).
Attachments to saveNoWhich attachments to save, by file name, one per line. Wildcards allowed. Accepts a variable holding a name or a list of names. Leave empty to save all of them.

What it gives back

  • {variable}

See all Email steps.

Errors

ErrorDescription
Outlook not openOutlook is not running
No e-mail selectedNo e-mail is currently selected
No attachmentsThe selected e-mail has no attachments
Directory not foundThe specified directory does not exist

Tips

  • Use a glob filter like *.pdf to only save PDF attachments
  • The variable stores the list of saved file paths for use in later steps

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.