Skip to main content

Save attachments

Save a Gmail message's attachments to a folder, optionally only names matching a pattern such as *.pdf.

Command in the Google Workspace toolkit · id ooa.google/gmail_save_attachments · 6 inputs (3 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Message IDStringYesGmail message id from List Gmail messages.
Target folderFileYesFolder to save into.
Name patternStringNo*Only names matching this pattern, e.g. *.pdf.
OverwriteBooleanNofalseReplace files of the same name instead of adding a number such as (2).
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
filesListSaved file paths.