Save email action in Gmail package

Use the Save email action to save the current Gmail email to a local folder in .eml format.

This action must be used inside a Loop action, enabling you to store individual emails with the same or a custom file name.
Note: This action is only supported in Task Bots.

Considerations

An error is displayed if any of the following conditions are encountered when you deploy your automation to save an email:
  • The specified Gmail session is invalid or does not exist.
  • The specified folder path is invalid or inaccessible.
  • The provided file name contains special characters that are not supported by the target operating system.
  • The provided file name uses an unsupported file extension.

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
  • In the Save email to folder field, enter the local folder path where the email file is saved.

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

  • (Optional) In the Filename field, enter the name of the email file.

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

    Note: If you do not provide a name to the email file, a default file name is used and the file is automatically saved with the .eml extension.
  • (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.