FIlter outlook emails by variable


#1

Hello friends,
I need to filter some emails based on a number stored in a variable.
For example I have the number 05009022788169 taken from an Excel file and stored in a variable called “Numero POlizza”.
How can I pass it in the Filter ?


In this way it doesn’t work,
thank you so much.
Camilla :slight_smile:


#2

Hi @CamiCat,

In that before [subject] remove the double quotes and add it again.

Regards, Arivu :slight_smile:


#3

Hello @CamiCat

Try this- “[Subject]=’”+variable1.ToString+"’"


#4

Thank you so much @Priya_Dubey
I tried in your way but it gives me this result.



Can you please help me a little bit more?
Thank you so much for your kind help,
Camilla :slight_smile:


#5

I removed the double quotes and added them again and now it works.


Thank you so much @Priya_Dubey
Camilla :blush::blush:


#6

Thank you so much @arivu96 for your precious advice.
Camilla :slight_smile: