Help Centre › Building Processes
This article describes the RPA Loop functionality to each unread email.
For a full list of available functions, please read LOOP functions.
Description
The LOOP Each unread email function allows you to each unread email.
Setting it up
To use the LOOP Each unread email function, follow these instructions:
{{popups:rpas/add:action=loop-unread}}
Once on a process map:
- Navigate to the process where you would like to add the LOOP Each unread email 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 LOOP Each unread email option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Account | Yes | Text | - | The Outlook e-mail account |
| Folder / mailbox | Yes | Text | - | The folder to check for unread e-mails |
| Variable | Yes | Text | - | Variable to store the current e-mail |
| Max iterations | No | Number | - | Maximum iterations |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | The current unread e-mail in each iteration |
Errors
| Error | Description |
|---|---|
| Outlook not open | Outlook is not running |
| Folder not found | The folder does not exist |
Tips
- Loops through unread e-mails in the specified Outlook folder
- Each e-mail is automatically marked as read after processing