Help Centre › Building Processes
This article describes the RPA Outlook functionality to save e-mail attachments.
For a full list of available functions, please read OUTLOOK functions.
Description
The OUTLOOK Save e-mail attachments function allows you to save attachments from the currently selected e-mail to a directory on disk. Supports glob filtering by filename pattern.
Setting it up
To use the OUTLOOK Save e-mail attachments function, follow these instructions:
{{popups:rpas/add:action=outlook-save-attachments}}
Once on a process map:
- Navigate to the process where you would like to add the OUTLOOK Save e-mail attachments function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the OUTLOOK Save e-mail attachments option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File | Yes | Text | - | Directory path to save attachments to |
| Filter | No | Text | - | Glob pattern to filter attachments by name (e.g. *.pdf, *.xlsx, report*) |
| Variable | No | Text | - | Variable to store the list of saved file paths |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | List | List of saved file paths |
Errors
| Error | Description |
|---|---|
| Outlook not open | Outlook is not running |
| No e-mail selected | No e-mail is currently selected |
| No attachments | The selected e-mail has no attachments |
| Directory not found | The specified directory does not exist |
Tips
- Use a glob filter like *.pdf to only save PDF attachments
- The variable stores the list of saved file paths for use in later steps