Email: Count emails

Count emails in a folder.

Help Centre › Building Processes

Count emails in a folder.

Runs on: Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Count emails under Email › Read & Search, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
VariableYesName of the variable where the result will be stored
ToNoOnly count emails whose 'To' recipients contain this text.
CcNoOnly count emails whose 'Cc' recipients contain this text.
BodyNoOnly count emails whose body contains this text.
Date fromNoOnly count emails received on or after this date (YYYY-MM-DD).
Date toNoOnly count emails received on or before this date (YYYY-MM-DD).
ImportanceNoOnly count emails with this importance. Choices: High, Normal, Low.
FilterNoAdvanced - a raw Outlook DASL/Restrict filter string, combined (AND) with the fields above.
Has attachmentsNotrue = only emails with attachments, false = only emails without, unset = both.
Subject filterNoCount only e-mails matching this subject substring.
Sender filterNoCount only e-mails from this sender.
Folder / mailboxNoFolder path to count in. Uses Inbox if omitted.
Unread onlyNoCount only unread e-mails.

What it gives back

  • {variable}

See all Email steps.

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.