How to save the first attachment from an email

email

#1

Hi,

I just use the Save Attachments activity, I only want to save the first attachment. how to save the first attachment from an email? Thanks.


#2

the simplest solution would be to save them all, then move array[0] to another location and delete the remaining attachments.


#3

@Kevinq

Try like this
FileAttachment ABC = MailItem.FileAttachment(0)

Then use Invoke Mehod, use Method Load
Target Object must be ABC
Pass the path as string where you want to save as an Argument.

Regards
Mahesh


#4

thank you @Tiberiu_Niculescu @MAHESH1