OUTLOOK Count e-mails function

The OUTLOOK Count e-mails function in RPA.

Help CentreBuilding Processes

This article describes the RPA Outlook functionality to count e-mails.

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


Description

The OUTLOOK Count e-mails function allows you to count e-mails in a folder, optionally filtered by criteria such as unread status, subject, or sender. Returns an integer.


Setting it up

To use the OUTLOOK Count e-mails function, follow these instructions:

{{popups:rpas/add:action=outlook-mail-count}}

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
AccountYesText-The Outlook e-mail account
Folder / mailboxNoTextInboxFolder path to count in
Unread onlyNoSwitchOffCount only unread e-mails
Subject filterNoText-Count only e-mails matching this subject substring
Sender filterNoText-Count only e-mails from this sender
VariableYesText-Variable to store the count

Output variables

VariableTypeDescription
VariableNumberThe count of matching e-mails

Errors

ErrorDescription
Outlook not openOutlook is not running
Folder not foundThe specified folder does not exist

Tips

  • Use this to check if there are unread e-mails before processing
  • Combine with a condition to only proceed when the count is greater than zero

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.