Skip to main content
All CollectionsWrk Action LibraryGmail
Download attachments from an email in Gmail
Download attachments from an email in Gmail
Wrk Product avatar
Written by Wrk Product
Updated over a week ago

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)

Name

Description

Data Type

Required?

Example

Message ID

ID of the message to download the attachments from

Text(Short)

Yes

18b8b2199178426a

Email address

The email address where the message ID can be found. If left blank your primary email address will be used

Email

No

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)

Name

Description

Data Type

Required?

Example

Downloaded file

The file attached to the email

File

Yes

g2_category_data.csv

File name

The name of the file downloaded

Text(Short)

Yes

g2_category_data.csv

File type

The type (extension) of the file downloaded

Text(Short)

Yes

csv

Outcomes

Name

Description

Success

This status is selected in the event that the attachments are successful downloaded

No Result

This status is selected in the event of the following scenario:

  • No attachments are present on the email associated to the email ID

  • No message was found using the message ID provided in the given inbox

Impossible to Complete

This status is selected in the event of the following scenario:

  • Unable to download the message attachments

Requirements

  • N/A

Did this answer your question?