Definition and Usage
Download and save email attachments to a specified folder. This command allows you to extract attachments from email messages and save them to a designated location on your computer, with options to set timeout parameters and store the file paths for further processing.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
Email message | Select the mail message to process | Any valid email message object | Yes | Must be a previously retrieved email message |
Save to | Select or enter a folder to save the downloaded file | Valid file path | Yes | The folder must exist or be creatable |
Timeout (s) | Download timeout (s) | Numeric value | Yes | Defaults to 1000 seconds |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
This command produces an output variable that saves the path of downloaded attachments in a new variable. The output is typically an array of file paths for all downloaded attachments.
Using Variables in Conditions
You can use the output variable (containing file paths) in subsequent actions to:
Check if attachments were successfully downloaded
Process the downloaded files (e.g., read, move, or analyze them)
Count the number of attachments downloaded
Perform conditional operations based on attachment availability
Variable values can be inserted into parameters by using the variable icon or typing {variableName} in the input fields.
Notes
Ensure that you have sufficient disk space in the target folder before downloading large attachments
The command will download all attachments from the selected email message
If an attachment with the same name already exists in the target folder, it may be overwritten or renamed depending on system settings
Network connectivity issues may cause download timeouts; adjust the timeout parameter accordingly for large attachments
The output variable will contain an empty array if no attachments are found in the email message