Save all attachments action in Gmail package

Use the Save all attachments action to save all attachments from Gmail emails that match specified filter conditions to a local folder.

This action enables you to filter emails by read status, labels, sender, subject, and received date, and then download all associated attachments to a specified location on the local system.

Considerations

An error is displayed if any of the following conditions are encountered when you deploy your automation to save all the email attachments:
  • The specified Gmail session does not exist.
  • One or more specified Gmail labels are invalid.
  • One or more of the sender names or email addresses that you have provided are invalid.

Settings

  • Select the Gmail session using one of the following options:
    • Session name: To select an existing Gmail session by name.
    • Variable: Select a variable of type Session with sub-type Gmail
  • Use the Status of email to move field to select one of the following options to specify the read status of emails to be moved:
    • Read
    • Unread
    • Both
  • In the From specific labels field, enter one or more labels used to filter emails.

    You can also click the Insert a value icon to select an existing variable.

  • (Optional) In the When subject contains field, enter a keyword or phrase that must be present in the email subject.

    You can also click the Insert a value icon to select an existing variable.

  • (Optional) In the From specific senders field, enter the sender email addresses used to filter emails.

    You can also click the Insert a value icon to select an existing variable.

  • (Optional) Click the When received date is on or after drop-down menu to select a start date and time for filtering emails.

    You can select the System date and time, or click the Create variable icon to create a custom Datetime variable.

    Note: Only the emails received on or after this date are considered.
  • (Optional) Click the When received date is before drop-down menu and select the end date and time for filtering emails.

    You can select the System date and time, or click the Create variable icon to create a custom Datetime variable.

    Note: Only the emails received before this date are considered.
  • In the Save attachments to folder field, enter the local folder path where email attachments are saved.

    You can also click the Insert a value icon to select an existing variable.

  • (Optional) Select the Overwrite file(s) check box to ensure existing files with the same name in the destination folder are overwritten.

    By default, this option is not enabled and attachments with duplicate file names are saved with a numeric suffix.