Downloading attachement from a specific folder outlook

I’ve juste shared the entire workflox, I think it would be easier for you to identify the problem

image but Still not working

1 Like

Fine
—your folder mention is correct but kindly remove the account in the get outlook mail property panel
—and kindly mention the variable mailattach in the output property of get outlook mail activity I think that was missing in the screenshot
—moreover the datatype if mailmessage in the for each loop should be
System.Net.Mail.MailMessage

Hope this would help you
Cheers @dalilasencha

image this is the folder I want the robot go to

1 Like

@dalilasencha

Just done (step 1 and 3) but, I don’t know how to do step 2 " nd kindly mention the variable mailattach in the output property of get outlook mail activity I think that was missing in the screenshot
—moreover the datatype if mailmessage in the for each loop should be
System.Net.Mail.MailMessage

Hope this would help you
Cheers @dalilasencha

Reply

dalilasencha

lakshman

3m

image this is the folder I want the robot go to

1

Reply

PalaniyappanRobot Master

1m

Palaniyappan:

Fine
—your folder mention is correct but kindly remove the account in the get outlook mail property panel
—and kindly mention the variable mailattach in the output property of get outlook mail activity I think that was missing in the screenshot
—moreover the datatype if mailmessage in the for each loop should be
System.Net.Mail.MailMessage

Hope this would help you
Cheers @dalilasencha

@dalilasencha

Reply

Clear Bookmarks Share Flag Reply

Watching

You will receive notifications because you created this topic.

Suggested Topics

https://forum.uipath.com/c/build/2929%7C%5B1%5D(https://forum.uipath.com/t/downloading-attachement-from-a-specific-folder-outlook/135166/22)%7C7%7C%5B3h%5D(https://forum.uipath.com/t/how-to-avoid-text-format-ex-2-13-converting-to-date-format-02-13-2019-when-writing-in-excel/135434/2)%7C
|FilePathIssue In Configuration File

https://forum.uipath.com/c/build/2929%7C%5B7%5D(https://forum.uipath.com/t/downloading-attachement-from-a-specific-folder-outlook/135166/22)%7C15%7C%5B4h%5D(https://forum.uipath.com/t/filepathissue-in-configuration-file/135391/8)%7C
|RadioButton Fetching the whole value Error

https://forum.uipath.com/c/build/2929%7C%5B14%5D(https://forum.uipath.com/t/downloading-attachement-from-a-specific-folder-outlook/135166/22)%7C39%7C%5B4h%5D(https://forum.uipath.com/t/radiobutton-fetching-the-whole-value-error/135277/15)%7C
|Getting Error in Read range of Excel Application scope

https://forum.uipath.com/c/build/2929%7C%5B4%5D(https://forum.uipath.com/t/downloading-attachement-from-a-specific-folder-outlook/135166/22)%7C16%7C%5B4h%5D(https://forum.uipath.com/t/getting-error-in-read-range-of-excel-application-scope/135420/5)%7C
|Read range global

https://forum.uipath.com/c/build/2929%7C%5B1%5D(https://forum.uipath.com/t/downloading-attachement-from-a-specific-folder-outlook/135166/22)%7C18%7C%5B6h%5D(https://forum.uipath.com/t/read-range-global/135408/6)%7C

There are 4 unread and 262 new topics remaining, or browse other topics in RPA Dev Rookies"

1 Like

@dalilasencha

You did not declare output variable for Get Outlook MailMessage activity.

I changed your workflow. Please find the same.
outlookissue.xaml (8.3 KB)

The output variable mailattach though created is not mentioned in the get outlook mail activity property panel
Cheers @dalilasencha

1 Like

Many thanks , don’t have the message error anymore, but still nothing happening when I launch the robot.

I thank you again for your time and help !!

Outlook is located locally , and have several accounts, could you help me finding the problem?

1 Like

you are right , this has been changed. I don’t get the error anymore, however still not working. Nothing happens when I launch it :frowning:

1 Like

Kindly Make sure that you have some mails unread as the onlyunreadmail property is enabled in the get outlook mail activity
Cheers @dalilasencha

@dalilasencha

Inside For Each loop, just print the value like this: mail.Subject.Tostring

Have you specified account name properly or not. I.e. Email ID of account.

I have just sent a new email and then obtained this : image

1 Like

Fine usually this error occurs with a activity when any of the variable associated with that activity has no value in it
Cheers @dalilasencha

image

1 Like

Your variable declarations is perfect
But the thing is we are not able to get any mail list from get outlook mail activity I.e., the output variable mailattach is null
And this is the reason why we get this error
Let’s confirm this
Before for each loop use a write line activity and mention as
mailattach.Count.ToString
And if the value is more than 1 or 2 then we are getting value from the mail activity
Or
need to check with the properties of the get outlook mail activity

Kindly try that share the screenshot of the output panel which will show us the value of the writeline activity with the count
Cheers @dalilasencha

, I think it’s easier If I share with you my workflow(upload://sCiEw0HWqFPeycb4m4RZnRqrSRO.xaml) (9.5 KB)

Buddy
The reason why I can’t work with this xaml is its your outlook
Your workflow is perfect no doubt
But we are missing something that should be configured from your outlook
So though even we have the xaml with us we can check only if you run from ur side, as your system has that outlook account
No worries
We can sort this out easily
May I know what was the output in the output panel for write line activity
Kindly share that screenshot pls
Cheers @dalilasencha

This is what I 've put