Save Multiple Attachments Having Same Name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
17-05-23 03:03 PM
Hi Community Members,
I have 2 attachments with the exact same name in a single email. I want to save both of these attachments in C\Temp folder, obviously with different names as we can’t save 2 files with the same name in same folder.
I am using Object created by my company but its base is MS Outlook VBO. Below are the steps that I am following:
1) Using Read Emails to get relevant email.
2) Using Get Message Details to get all the attachments in the particular email.
3) Using Attachment collection as loop
- In the first iteration of Attachment loop, it will save the file.
- In second iteration, it will check if file is already saved with the same name.
- If yes, then change file name with suffix 2 at the end. (For e.g. File name is Test.xlsx. Then first file will be saved as Test.xlsx and second file will be saved as Test2.xlsx).
- Now the problem in this case is that while saving the 2nd File, since both files names are same, Blueprism is again saving first file only, this time naming it as Test2.xlsx. So 2nd file is not saved at all.
Please advise on know how we can tackle this problem in Blueprism.
Thanks & Regards,
Pawan Panjwani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
23-05-23 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-05-23 12:40 PM
Hi Luis,
The Email object is inbuilt by my company but the base is taken as MS Outlook VBO only.
Thanks & Regards,
Pawan Panjwani
