OUTLOOK Wait for e-mail function

The OUTLOOK Wait for e-mail function in RPA.

Help CentreBuilding Processes

This article describes the RPA Outlook functionality to wait for an e-mail.

For a full list of available functions, please read OUTLOOK functions.


Description

The OUTLOOK Wait for e-mail function polls the inbox (or a specified folder) until an e-mail matching the given criteria arrives, or until the timeout is reached. This is useful for automation workflows that depend on receiving a specific e-mail before proceeding.


Setting it up

To use the OUTLOOK Wait for e-mail function, follow these instructions:

{{popups:rpas/add:action=outlook-wait-for-email}}

Once on a process map:

  1. Navigate to the process where you would like to add the OUTLOOK Wait for e-mail 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 OUTLOOK Wait for e-mail option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
VariableYesText-Variable to store the matched e-mail data
FolderNoTextInboxFolder to monitor
Timeout (seconds)NoText300Maximum seconds to wait
Poll interval (seconds)NoText10Seconds between each poll check
Subject filterNoText-Subject substring to match
Sender filterNoText-Sender name or e-mail to match
Has attachmentsNoSwitchOffOnly match e-mails with attachments
Unread onlyNoSwitchOffOnly match unread e-mails
AI match descriptionNoText-Natural language description for AI semantic matching

Output variables

VariableTypeDescription
VariableDictionaryThe matched e-mail data including subject, sender, body, date, id, and attachments

Errors

ErrorDescription
Outlook not openOutlook is not running
TimeoutNo matching e-mail arrived within the timeout period
Folder not foundThe specified folder does not exist

Tips

  • Use the AI match description for complex matching like "the approval email from finance"
  • Combine subject and sender filters for precise matching
  • Set a reasonable timeout to avoid blocking your process indefinitely
  • Use a longer poll interval to reduce system load

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.