How to save the first attachment from an email

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.

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

@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

thank you @Tiberiu_Niculescu @MAHESH1