LOOP Each unread email function

The LOOP Each unread email function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the LOOP Each unread email function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the LOOP Each unread email option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
AccountYesText-The Outlook e-mail account
Folder / mailboxYesText-The folder to check for unread e-mails
VariableYesText-Variable to store the current e-mail
Max iterationsNoNumber-Maximum iterations

Output variables

VariableTypeDescription
VariableObjectThe current unread e-mail in each iteration

Errors

ErrorDescription
Outlook not openOutlook is not running
Folder not foundThe 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

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.