Filenames after downloading attachments from Outlook

I am Downloading Attachments from Outlook, after first:

Watch Messages
Get a Message
List Attachments

When I download the attachments they are all given the filename “outlook_email_attachment.jpeg” but the original filenames can be seen in the previous steps. Is there some way to download the attachments with the original filename?

Hello @Steven2 and welcome to the Make Community!

List Attachments has both the name of the file and Attachment ID.
You can save these off into an array by using an Array Aggregator after List Attachments.
Now you’ll have an array of collections, each containing a [File] Name and Attachment ID.

Now, you can pop that array into an Iterator (everything after Iterator runs once).
Follow that iterator with Download an Attachment followed by whatever module you need to upload that file somewhere else.
When you upload, you’ll set the file data to the output of the Download an Attachment module and the file name will be the name output from the Iterator.

Hope that makes sense and hope it helps!

1 Like