IMAP Activity Query Filter

my requirement is to filter the subject, received between the date. I have found the solution for the Subject filter but I don’t have the query between the two dates!
Please Help me out!!

Hi @Arun_Prakash2

Have a look on the docs

https://docs.uipath.com/activities/docs/get-imap-mail-messages#filtering-examples

Regards
Gokul

@Gokul001 there is no filter queries for between two dates!!

Hey! Welcome to community!

Try this

"[Subject] = 'Mention Subject here'"+"[Received] >= '" + DateTime.Today.AddDays(-5).ToString("d") + " 00:00AM' AND [Received] < '"+ DateTime.Today.ToString("d") + " 00:00AM'"

This will give you the mails from past five days with the subject mentioned:

Regards,
NaNi

no, this will work on get. outlook activity. IMAP has it own different queries condition

Hey!

Try this:

"SUBJECT ""Welcome"""+"SINCE 10-JUN-2022"

Regards,
NaNi

Hi @Arun_Prakash2

Try this for “received between the dates”

"BEFORE 05-Jul-2022 SINCE 03-Jul-2022"

This will filter mails with the following dates (03-Jul-2002 and 04-Jul-2022)

Hi @Arun_Prakash2

Please close the topic if your query is resolved

Thanks

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