How to Convert List Mail message to mail message variable

Hi,

I want to reply the mail who is sending a mail with a message of “I acknowledge” or “I accept”
if any one of keyword is avaiable then i should mail them message contains “Thank you for accept terms and conditions”

I have taken get outlook mail and stored in variable which list.mail.message
and i have used for each loop and loop through the mails and i used Reply outlook mail Activity
i getting the error in mail message which is only taken mail.message datatype variables but i have list type. how to tackle this error

Main.xaml (10.0 KB)

@Sai.Srinivas

A list can be accessed by using a loop and setting the type argument in for loop to mailmessage…

Then inside loop currentitem can be used for mailmessage

Or

Alternately AcknowledgedMails(0) will give you the first (1) gives you second and so on

Hope this helps

Cheers

Hi,

Can you try just currentItem as the following?

Regards,

Hey

Try this

Regards

@Anil_G

How to filter this keywords in mail

eg: i Have two keywords which will be there in body message

the body message will be

*Hi,

Thanks for your offer! Yes,I accept the offer

Regards
Sai*

Instead of I accept the offer some of the mails have alternative keyword like acknowledge

How to tackle this situation

Regards
Sai

@Sai.Srinivas

Please try this

"@SQL=""urn:schemas:httpmail:textdescription"" like '%accept%' OR @SQL=""urn:schemas:httpmail:textdescription"" like '%acknowledge%'"

Cheers

where i should mention this code

@Sai.Srinivas

In the filter properties of the get outlook mail message

Cheers

@Anil_G

No. I couldn’t work. can you provide sample code of it.