Outlook attachments

email
code
activities

#1

Eduardo Lanchas
July 15, 2016 23:23 ANSWERED
Does it work the Save Attachments function with Outlook?
If it doesn’t work, which is the best way to download the Attachments of an Outlook mail in a specific path?


Outlook Folder Email Attachment Saving
#2

Nitin Safaya July 19, 2016 09:44
Yes, Save Attachments function works with Outlook.

note: path is a string variable containing the address.


#3

Hi,

I got error on that.


#4

Hi @johnine,

So yo need to convert you Item variable in System.Net.Mail.MailMessage ,in the property of the for each activity.

When using For each, don’t forget to check if the receiving variable is matching le types in your list.

Hope it’s helps.

Regards.

Peter


Workflow has validation error
#5

@johnnie,

You need to pass the type of argument as system.net.mail.mailmessage

As shown below:

Thank You


#6

@UiRobot and @nikitha.hanumanthara thanks so much for your help :slight_smile: It worked! I’ve changed the TypeArgument to System.Net.Mail.MailMessage


#7

Hi again guys,

How to check if theres no email or it has
On my outlook I have a folder to store all email needed for the task
Here’s my flow :


on myFlow Decision I added a two message box and my condition is
var is nothing
False: has email
True: no new email
but it always shows it has email while there is no email at all on that folder…
Here’s my log :
11:49:44.5729 Trace {"message":"clicked","timeStamp":"2017-02-28T11:49:44.5589786+08:00","level":"Verbose","windowsIdentity":"SCHENKER\\jquitaneg","processName":"eDR Bot","fileName":"Main"}

Thanks.


#8

Hi,

Try putting as condition:
eDRMail.Any()
This will check if the List<MailMessage> actually contains any elements, as it returns an initialized list already, so it’s never null.

Regards.


#9

@andrzej.kniola thanks it worked :slight_smile:


#10

Hi,

I’ve saved all the attachments of one email in an “ICollection(Ienumerable)” and after processing these attachments i’d like to clear the collection in order to work with another email that could have less or no attachments.

Could anyone tell me how to empty this collection?

Thank you in advance!

Regards,

Andres


#11

#12

#13

Hi;
Clear collection activity should do, If you do not have it on the activity panel, try to instal Microsft.Activity.Extension package

image

Cheers