Get outlook desktop mail messages

Iam using “get outlook desktop mail messages” activity

and in filter by message ids i have use an argument to pass the mail id to get filter like below.
But its not filtering based on the argument.

@Gokul_Murali

Here you are using email ID’s, but there you need to pass the message ID’s instead of MailID’s.
If you want to filter the by sender email address id

you can use filter Property instead of filter by messageid

“[SenderEmailAddress] = ‘abc@github.com’ OR [SenderEmailAddress] = ‘bcd@co.in’”

you can use this expression into in Filter property and replace with your actual mail ids.
And make sure about your properties if Only unread messages is set to true it will look for only unread mail messages if you want all messages irrespective of read or unread you can set to false and check limit emails to first property how many emails you given based on that count only it will get emails

go throw below tutorial as well to get more idea on activity
Activities - Get Outlook Mail Messages

Happy Automation!!
Mark it solution if you find the solution. @Gokul_Murali

Filter by message id is a field which will filter the email by their ids it will be a long number
Where you have pass an array filter with email id
You need to pass email field in above filter field and that to you need query like from or subject contains
You will get reference easily over the forum and UiPath documentation portal

Right click on activity and click help

You will be redirected to academy there details are mentioned how to pass filer and filter by id

Hope this helps @Gokul_Murali

@Gokul_Murali

please check below link to understand how filtering works

add below string in Filter property

"[SenderEmailAddress] = ‘abc@outlook.com’ OR [SenderEmailAddress] = ‘xyz@outlook.com’ "

1 Like

So is this id is unique for each mail id

@Gokul_Murali here id means message ID. It is different for each mail message. in your case you have to use filter property not filter by ID

Yes it’s unique while reading email via get mail messages
You can store id

@jast1631
@Darshan_Sable

Iam getting an error like this below

Check the previous email number count as in how many email u r referring also check read unread related settings

This might be the reason its not finding email @Gokul_Murali

Thank you so much @jast1631
@yedukondaluaregala
@Darshan_Sable

If the answer was help ful please mark it as solution
Cheers ! Happy automation

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