Download attachment from sent items counts has been changed each and every time

Task was downloading attachments from sent items (.pdf, .Docx). and stored in local system. But we face some issues while running. Each and every time downloaded attachment count has been changing. How it will be fixed?

TryCatch.xaml (21.3 KB)

Check by enable this property in the Get IMAP Mail Messages, since you are reading all the mails same attachments will be downloaded and added with incremented number at the suffix.

If i checked “onlyunread messages”, it reads only unread message from sent items.


Okay then, you can use Path Exist Activity with File option to check whether the file is exist or not in the folder before invoke Save Attachment activity.