Build Your First Proces with Studio - Part One

I’m following long with the RPA Dev Foundation course and I’m using the 2025 version of UiPath Studio Community but there seems to be a disconnect between the changes and renaming of the activities between version so here I am retrying to count the number of emails with the subject heading “Course Invoices” and create a new folder. When I run it, the log says there’s 0 emails retrieved, and no folder created.

RPA Developer Foundation (v2021.10) Course | UiPath Academy

Hi @wendy.xiong

Your code and filter expression everything is correct. But You have checked onlyunreadmessages option in properties, so bot will read only unread mails with Subject of Course Invoices. It seems you don’t have unread messages, uncheck the option and run again.

Hope it helps!!

Yes, it should only be unread mail.

Looks like I didn’t account for my company’s security setting so I have to put subject heading as “[External] Course Invoices”, but the new folder “Invoices” isn’t being created.

Okay got it… @wendy.xiong

In the mail Subject is [External] Course Invoices not Course Invoices. You are better to use contain method not equal method.

So change the filter expression as below and try it will work,

"@SQL=""urn:schemas:httpmail:subject"" like '%Course Invoices%'"

Hope it helps!!

1 Like

@wendy.xiong

your expression looks for exact match and there is no exact match so the count is 0

change subject properly or use other methods to use contains

for expression check here

The image shows a table with two columns, where the first column describes a filter condition for mail messages containing the string "business analyst" in the subject, and the second column provides the corresponding SQL query code to implement this filter. (Captioned by AI)

cheers

@wendy.xiong ,

You can try one thing,
First get subject what exactly it giving for respective email.

take that subject and pass that text in you condition to get the emails based on subject.
try this hope it will work

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.