Help Centre › Building Processes
This article describes the RPA Outlook functionality to perform bulk operations on e-mails.
For a full list of available functions, please read OUTLOOK functions.
Description
The OUTLOOK Batch e-mail operations function allows you to perform bulk operations on e-mails matching a filter. Supports mark_read, mark_unread, delete, move, and category actions applied to all matching e-mails at once.
Setting it up
To use the OUTLOOK Batch e-mail operations function, follow these instructions:
{{popups:rpas/add:action=outlook-batch}}
Once on a process map:
- Navigate to the process where you would like to add the OUTLOOK Batch e-mail operations 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 Batch e-mail operations option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Account | Yes | Text | - | The Outlook e-mail account |
| Action | Yes | Select | - | The bulk action: mark_read, mark_unread, delete, move, or category |
| Folder / mailbox | No | Text | Current | Folder path to search in (e.g. Inbox or Inbox::Subfolder) |
| Target folder | Only for move | Text | - | Destination folder path for the move action |
| Category | Only for category | Text | - | Category name to assign (e.g. Red Category) |
| Subject filter | No | Text | - | Filter by subject substring |
| Sender filter | No | Text | - | Filter by sender name or e-mail address |
| Date from | No | Text | - | Filter e-mails received on or after this date (YYYY-MM-DD) |
| Date to | No | Text | - | Filter e-mails received on or before this date (YYYY-MM-DD) |
| Unread only | No | Switch | Off | Filter to only unread e-mails |
| Has attachments | No | Switch | Off | Filter to only e-mails with attachments |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Outlook not open | Outlook is not running |
| Folder not found | The specified folder does not exist |
| Target folder not found | The destination folder for move does not exist |
| Invalid action | The specified action is not supported |
Tips
- Combine multiple filters to precisely target the e-mails you want to process
- Use date range filters to batch-process old e-mails
- The move action requires a target folder to be specified