Download Gmail Email Attachment
You can select this activity to download attachments from Gmail emails to a local directory.
This table lists the properties for the activity.
| Property Type | Property Name | Data Type | Description |
|---|---|---|---|
| Input | InArgument<Mail> | The unique identifier of the email message from which attachments must be downloaded. This property is mandatory. | |
| Input | Attachment Filter | InArgument<String> | The pattern used to download matching attachments. |
| Input | Save Destination | InArgument<String> | The directory where the attachments must be saved. |
| Common | Continue on error | Boolean | Set to True for continuing the workflow even if the activity fails. The default value is set to True. |
| Output | File Paths | OutArgument<List<String>> | The list of file paths where the attachments are downloaded. |
| Output | Response code | OutArgument<Int32> | Response code for the activity. |
Activity behavior
Review this behavior of the activity when processing attachments and returning responses:
- If you specify Attachment Filter, the activity downloads only attachments that match the specified file extensions. Use comma-separated or pipe-separated values, such as .pdf or .xlsx.
- If you do not specify Attachment Filter, the activity downloads all non-inline attachments.
- If multiple attachments have the same file name, the activity appends a numeric suffix to the file name, for example, file(1).pdf.
- When the activity is completed successfully, the Response Code is 200. If an error occurs, the Response Code is 500.