sanap
(Sana Perween)
20. Juni 2017 um 11:36
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)
20. Juni 2017 um 11:46
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)
21. Juni 2017 um 03:30
3
Have a look. I have to complete the body part of foreach.
ddpadil
(Dilip)
21. Juni 2017 um 04:29
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)
21. Juni 2017 um 04:46
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)
21. Juni 2017 um 04:52
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)
21. Juni 2017 um 04:56
7
Why did you take the assignment block?
ddpadil
(Dilip)
21. Juni 2017 um 04:57
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)
21. Juni 2017 um 05:07
9
It’s not working. The attachment doesn’t get downloaded, nor the further sequence gets executed.
ddpadil
(Dilip)
21. Juni 2017 um 05:10
10
whats the error? attach workflow.
sanap
(Sana Perween)
21. Juni 2017 um 05:15
11
There isn’t any sort of error.
ddpadil
(Dilip)
21. Juni 2017 um 05:21
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)
21. Juni 2017 um 05:36
13
Nothing seems to work I’m afraid. I’m stuck with this.
ddpadil
(Dilip)
21. Juni 2017 um 05:39
14
does your Get IMAP Mail Messaging reading the mail?
sanap
(Sana Perween)
21. Juni 2017 um 05:42
15
It just opens up the gmail.com page and nothing else
ddpadil
(Dilip)
21. Juni 2017 um 05:43
16
by default “OnlyUnReadMessages ” checked .
please keep some unread mail in gmail and try again.
sanap
(Sana Perween)
21. Juni 2017 um 06:03
17
What should be the variable type of password?
sanap
(Sana Perween)
21. Juni 2017 um 06:13
19
Still not working. Should I leave this and try other samples?
ddpadil
(Dilip)
21. Juni 2017 um 06:21
20
sure. I don’t know why you unable to do so.
All the best.