How to filter messages in Get outlook mail messages

simple just initialize [received]:“” in filter property.
For more customization on date parameter,
please go through the below link as mentioned by @UiRobot

can you please elaborate the syntax for filtering current date as I am trying to filter today’s date but not getting it.

Hi. Is it possible to put more than one filter? Meaning can I filter both [subject] and [from]?

2 Likes

Hi
I am facing a similar problem. I would like to filter my get oulook email activity by subjects. Using the filter “[subject]=‘Request*’” does not work.
I also tried the for each and if activity combination (see screenshot).

Thanks a lot for your help.

Contains should not have an asterisk.
Either use item.Subject.Contains("Request") or item.Subject Like "Request*"

More on Like operator:

8 Likes

Thanks, any idea on why the filter “[Subject]=‘Request*’” didnt work?
also asterisk issue?

Partially. In current implementation only strict filters (no wildcards) can be made. You can search other topics on the forums, it was already discussed a couple of times.

Hi @vvaidya

could you tell me, In which version of UiPath was worked?

1 Like

“[From]=‘Uipath Helpdesk’”

This should work in all versions.

3 Likes

Hi @vvaidya

Could pls send me any usecase xaml file if you have , because it is not working in my case.

1 Like

Hi
Could you please send me any xaml file for filtering mails based on received date.

hey @Haritha

This link will be helpful for you:

Regards…!!
Aksh

1 Like

Hi @aksh1yadav
Then what is the use of “Filter” property in Get Outlook Mail Message activity. Could you please provide any solution by using filter option to filter mails based on received date.

Thanks,
Haritha

Hey @Haritha

Filter - A string used as a filter for the messages to be retrieved.

It’s almost impossible to match exactly a date value like that. Usually we use a combination of > dateX and < dateY to get items within a specific time frame.

Example - outlook_filter_received_date.xaml (6.3 KB)

Regards…!!
Aksh

1 Like

Hi @aksh1yadav

Even if I have many mails on that particular time span, it retrieves only one mail.
I’ve used many possible combinations to get mails on a received date… but i’m getting only one mail for all scenarios.

Thanks,
Haritha

Have you tried my example it is giving all todays mails date to you? For
me it is.

@aksh1yadav
Yes. I have tried the xaml you provide. I’m getting only one mail even if I have so many mails today

Well i have checked for me and on of my friend also it is working fine and getting all today mails date.
Please check it your side. its properties or something if you have changed or that mail check with yesterday?

Regards…!!
Aksh

Hi,

This information is helpful. I tried the same thing with “[received]= ‘Last Month’” but it was not working. Rest all is working fine. Probably this is not working because “received” accepts in date format.

Please suggest.

Thanks in advance.