sanap
(Sana Perween)
June 20, 2017, 11:36am
1
To get IMAP mail messages i saved those messages in a variable of type System.Collections,Generic.List(System.Net.Mail.MailMessage)
But when I’m trying to save the mail message using the same variable then it shows error "value of System.Collections,Generic.List (Of System.Net.Mail.MailMessage) can’t be converted to System.Net.Mail.MailMessage
(No error is shown in the Get IMAP Mail container but error pops up in the container related to saving mail message)
Please give me some suggestions on how to solve this problem
ddpadil
(Dilip)
June 20, 2017, 11:46am
2
hope your processing via foreach loop
the variabel which store the mail is in list .So while processing through foreach loop it should item by item
please change the variable type to "System.Net.Mail.MailMessage"
sanap
(Sana Perween)
June 21, 2017, 3:30am
3
Have a look. I have to complete the body part of foreach.
ddpadil
(Dilip)
June 21, 2017, 4:29am
4
looks like you got me wrong.
Keep your "get IMAP message output variable (eg: mail ) type as List of System.Net.Mail.MailMessage
when you pass the same variable (eg:mail ) in foreach just change the TypeArgument as “System.Net.Mail.MailMessage” keep default item as it is.
please see the screen shot.
sanap
(Sana Perween)
June 21, 2017, 4:46am
5
Can you tell me how to save a mail or an attachment? I am facing problems in item.Body.Contains(“”) part. What should I write in the quotes?
ddpadil
(Dilip)
June 21, 2017, 4:52am
6
we have save attachment and Save Mail Message activity
if you want to save attachment depends on subject or sender name or any condition for eg.
sanap
(Sana Perween)
June 21, 2017, 4:56am
7
Why did you take the assignment block?
ddpadil
(Dilip)
June 21, 2017, 4:57am
8
that’s for further operation on attachment so i can read the excel files from the file path.
Anyway that not required in your case .
sanap
(Sana Perween)
June 21, 2017, 5:07am
9
It’s not working. The attachment doesn’t get downloaded, nor the further sequence gets executed.
ddpadil
(Dilip)
June 21, 2017, 5:10am
10
whats the error? attach workflow.
sanap
(Sana Perween)
June 21, 2017, 5:15am
11
There isn’t any sort of error.
ddpadil
(Dilip)
June 21, 2017, 5:21am
12
after condition does it entering into “then ” sequence ?
if not make sure your subject is right. just change subject as “document_Sana”
sanap
(Sana Perween)
June 21, 2017, 5:36am
13
Nothing seems to work I’m afraid. I’m stuck with this.
ddpadil
(Dilip)
June 21, 2017, 5:39am
14
does your Get IMAP Mail Messaging reading the mail?
sanap
(Sana Perween)
June 21, 2017, 5:42am
15
It just opens up the gmail.com page and nothing else
ddpadil
(Dilip)
June 21, 2017, 5:43am
16
by default “OnlyUnReadMessages ” checked .
please keep some unread mail in gmail and try again.
sanap
(Sana Perween)
June 21, 2017, 6:03am
17
What should be the variable type of password?
sanap
(Sana Perween)
June 21, 2017, 6:13am
19
Still not working. Should I leave this and try other samples?
ddpadil
(Dilip)
June 21, 2017, 6:21am
20
sure. I don’t know why you unable to do so.
All the best.