Get IMAP Mail Message Filter Property

Hi everyone,

I m using Get IMAP Mail Message Filter Property to receive mails

Filtering on subject by using "“SUBJECT ““Welcome”” FROM john.smith@example.com

How to use a variable in place of welcome and john.smith@example.com

Thanks and Regards,
Supriya

Hi

May be we can get the mailmessage first and then filter it with a simple assign activity like this

say your mailmessage variable name is out_mailmessage

Then use a assign activity like with your variable you want to use instead of welcome and the mail I’d

out_mailmessage = out_mailmessage.AsEnumerable().Where(Function(a) a.Subject.ToString.Contains(variable_1.ToString) AND a.Subject.ToString.Contains(variable_2.ToString)).ToList()

Variable_1 and variable_2 are your variables where you can pass the value for welcome and mail I’d

Cheers @supu123

@Palaniyappan

Yes with this I m getting the solution but instead of all this if I get to add variable in the filter property than it would be more easy.

Thanks and Regards,
Supriya

1 Like

Fine then

Try like this

“Subject “+ variable_1.ToString + “From “+ variable_2.ToString

Cheers @supu123