Need to get the attachment name from email

Please i Need to get the attachment full name from every email, because i need to use the path where i save it after

Hi @Soudios

You can use below expression to get all attachment name from the mail

currentMailMessage.Attachments.Select(Function(x) x.Name).ToArray

The image shows a workflow for saving email attachments and assigning the attachment names to an array variable. (Captioned by AI)

Hi @Soudios

Try this way,

Regards,
Gowtham K

Hi @Soudios ,
If your email contains just one attachment you could use the following code to get its name:
attachmentName = CType(item.Attachments.FirstOrDefault, Attachment).Name

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.