Microsoft 365 download email attachment not getting all attachments

I am trying to download email attachments from new emails that come in. The process correctly identifies all the new emails and processes them however it doesn’t download all the files. it also doesn’t download with the name of the PDF. I don’t have any filters on to prevent it from getting all the attachments. Not sure where it’s going wrong.

Here is download email attachments properties:

Here is where i loop through the attachments to move them to a local folder:

Hi @atarantino
from 1st and 3rd screenshot I can see, Is that for each email attachments activity is out of for each email loop ?

if it so then it will just move the last emails attachment. You should add move attachment loop inside for each loop of email.

Hi @atarantino

Can you also give a try to save email attachments activity and see if it works better for you?

This was it thank you. One quick secondary question - how can i preserve the pdf name? it saves it with a randomized name instead of the name from the email

@atarantino

glad it works for you please mark it as solution!

the Save Attachments activity should save attachments with their original names by default. If this is not happening, you might need to manually rename the files after downloading.

@atarantino

extract the name from the attachment object

cuurentitem.Name would give the name you need

cheers

thank you this worked i can see the name and will just move the file with the correct name.

1 Like

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