I’m trying to move the unread mails from my inbox to another subfolder. Using Get IMAP, I’m able to read the mails and downloads its attachments in the system folders. Now I need to move the unread mails from my inbox to another subfolder. I fiilled all the properties of the activity. Now, What to put in the MailMessage box ? Please help me in this
Once you read the mail messages from IMAP, you are storing in a variable “mailMsgs”.
mailMsgs is a collection of mail messages received.
Now you have to use Move IMAP Mail Message to move the mail to another folder.
For each “item” in mailMsgs ->
Here “item” is the mailMessage object you have to give it in the MailMessage box of move activity.
Yes worked.I tried to put ‘Item’ before itself but was trying it outside the for each loop, so i was getting the error. Thanks for the help…
I don’t see any problem with the workflow.
Debug and see, exactly at which activity you are getting the error message.
Check the Type Argument in the For Each Properties.
It is defaulted to Object. You should change it to System.Net.Mail.Mailmessage (same type as your Get Mail Messages variable)