I’m writing a program to read my emails and save the attachments to a folder. Each email I’m scanning has a reference number at the end of the subject (e.g. ‘Satisfaction Survey (Ref: 84jd93sa01192cd9d)’). I’m planning to download the attachments to a folder and rename them to ‘(ref. no.) - (original attachment name)’. I’ve already done this, but I’m facing the issue where multiple attachments don’t download correctly. It’ll download all the attachments twice except the last one. And the duplicates are not renamed.
Here is a screenshot of my workflow:
Any help is appreciated, thank you!