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
| Field | Required | What it does |
|---|---|---|
| Variable | Yes | Name of the variable where the result will be stored |
| To | No | Only count emails whose 'To' recipients contain this text. |
| Cc | No | Only count emails whose 'Cc' recipients contain this text. |
| Body | No | Only count emails whose body contains this text. |
| Date from | No | Only count emails received on or after this date (YYYY-MM-DD). |
| Date to | No | Only count emails received on or before this date (YYYY-MM-DD). |
| Importance | No | Only count emails with this importance. Choices: High, Normal, Low. |
| Filter | No | Advanced - a raw Outlook DASL/Restrict filter string, combined (AND) with the fields above. |
| Has attachments | No | true = only emails with attachments, false = only emails without, unset = both. |
| Subject filter | No | Count only e-mails matching this subject substring. |
| Sender filter | No | Count only e-mails from this sender. |
| Folder / mailbox | No | Folder path to count in. Uses Inbox if omitted. |
| Unread only | No | Count only unread e-mails. |
What it gives back
{variable}
See all Email steps.
Errors
| Error | Description |
|---|---|
| Outlook not open | Outlook is not running |
| Folder not found | The 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