Unable to figure out Download Email Attachments from O365

I am using the latest version of O365 with Integrated services to trigger a specific email to run a job. However, I cannot figure out how to get the attachment to download anywhere. I have seen in the docs and throughout the forum that when using the Download Email Attachments activity that the default download path is C:\Users{username}\AppData\Local\Temp, but I am not seeing anything download there or anywhere. I would like to specify where to download the single attachment of my test using the out variable but I do not know how to handle looping through O365AttachmentLocalItem to save the attachment. I have also seen on the forum to use Save Attachment activity but I do not see that as an option with the latest version of O365. Here is a screenshot of my workflow. Any help is greatly appreciated.

1 Like

@Rich_Askenazi

  1. Attachments is the output type and you cannot send a location to it instead can copy from the location
  2. To Get the exact location of each attachment loop through the attachments that is test_out in your case and use currentItem.localpath to get the path where it is saved

sample

cheers

1 Like

Thank you. That got me there. In the for each Argument type I was using UiPath.MicrosoftOffice365.Mail.Models.O365AttachmentLocalItem instead. But the biggest issue was in the Download Email Attachments filter by filename, I just had “.xlsx” and forgot the wildcard

1 Like