How to get the attchement name with extension (Microsoft office 365 activities)

I am using Microsoft office 365 activities to download attachments need to get attachment name with extension. Unable to find the necessary property. how to achieve this.

@balanirmalkumar.s,

Use FullName property to get the file name with extension.

1 Like

Hi @balanirmalkumar.s

Please check below link for same,

Happy Automation!

I am using Microsoft office 365 activities. Not outlook activities

I am using Microsoft office 365 activities.

In the case you are interessted on the names before downloading the attachments (e.g. evaluation purpose)

arrAttachmentNames | Datatype: String Array = myOffice354MessageVar.AttachmentsNamesList

Also we do have additonal options for retrieving the attachment names as well

AttachmentsNamesList property not available

when referring to this:

we can do:
arrAttachmentPaths =

myAttachments.Select(Function (x) x.FullName).ToArray()

or
arrAttachmentNames =

myAttachments.Select(Function (x) x.Name).ToArray()

just crosscheck the different options we introduced. Decided which one is targeting your needs. If further assistance is needed let us know:

  • details on the used acitvity
  • Package version used within the implementation

Thanks for support

You should use Office365 activity with same name ‘Download Email Attachments’

As a output it gives array of O365AttachmentLocalItem from which you can use ‘FullName’ property to get file path.

Check below image for available properties

I am using this activity

this is correct before using this activity you should use something like Get Email List ,Get Latest Email, For Each Email or Get Email By ID activity to get email.
Pass output of one those activity to Save Email Attachment in Email Message property.

@balanirmalkumar.s,

It is for O365 download attachemnt.

This activity does not have any built-in property to display the name. If you want to display the attachment name, then you have to use the Get Mail Attachments activity instead of Save Email Attachments.