Skip to main content

Download attachments from an email in Gmail

Download attachments from a email in Gmail for a given message ID.

This Wrk Action divides. For more information on divides please visit our article explaining Divides.

Application

  • Gmail

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Message IDID of the message to download the attachments fromText(Short)Yes18b8b2199178426a
Email addressThe email address where the message ID can be found. If left blank your primary email address will be usedEmailNo

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Downloaded fileThe file attached to the emailFileYesg2_category_data.csv
File nameThe name of the file downloadedText(Short)Yesg2_category_data.csv
File typeThe type (extension) of the file downloadedText(Short)Yescsv

Outcomes

NameDescription
SuccessThis status is selected in the event that the attachments are successful downloaded
No ResultThis status is selected in the event of the following scenario:No attachments are present on the email associated to the email IDNo message was found using the message ID provided in the given inbox
Impossible to CompleteThis status is selected in the event of the following scenario:Unable to download the message attachments

Requirements

  • N/A