What i want to achieve is the RPA download attachment 1 by 1 using loop per-1 email.
actually to overcome this, i’m using 2 target folders. This is why i’m use looping for the save attachment:
each loop download 1 attachment, then add ID number for differentiator in the file name, finally move the file into folder 2, after that next process into next loop.
But, the loop is useless because of the save attachment activity downloaded all attachment with same name in each loop =_=
example:
email subject: testing mail
email attachments (the content of the attachment files is different each other):
1] file A.xlsx
2] file B.xlsx
3] file A.xlsx
That’s the by default case
If you have the same file names then windows will not allow to save the same, It will either replace that or put an increment to that
Try manually to save the 2 files with same name in window then you can get to know
it will overwrite if overwrite properties is checked and when the same file name already in a targeted folder.
but my case is the all same file name is in a email not in a folder yet.
actually to overcome this, i’m using 2 target folders. This is why i’m use looping for the save attachment:
each loop download 1 attachment, then add ID number for differentiator in the file name, finally move the file into folder 2, after that next process into next loop.
But, the loop is useless because of the save attachment activity downloaded all attachment with same name in each loop =_=
You can do one more thing also
You can place create folder and put some dynamic name to the folder and pass the variable to save attachments
So when the loop runs it will create the folder with some name and there the file will store
i tried this, the save attachment activity is still downloaded the same file name in each loop and put both the same file name in a dynamic folder.
oh god, i just want to download 1 attachment in each loop. regarding the auto increment in the file name is supposed windows’ job after the attachment downloaded =_= this is clearly lack of reliability of the save attachment activity.