31-05-24 10:55 AM
Hello, I am currently trying to save all attachments of my unread emails in a folder. I am using the Outlook VBO and the action 'dd'. There I enter the filepath and the filename, unfortunately the whole thing doesn't work. Regardless of whether I save the name ("file.pdf") in a data item with a text attribute and without "" or directly in the action with "file.pdf", this is always skipped and not saved. What could be the reason for this? If i leave the "File Name" entry empty, it does work. This is my process.
02-06-24 03:03 PM
Hi @lorenzwagner ,
There can be multiple reasons for that. Some of the things that I would suggest you to check and follow are listed below:
03-06-24 11:03 AM
@devneetmohanty07 Thank you for your comprehensive answer.
Regarding each point:
1) I checked and I'm ready to use the latest version.
2) I did include your process flow, but this email inbox actually only receives emails with attachments, so it can't happen that it's an email without an attachment. So the process always runs through, even with the decision stage. I've also removed the "FileName" field and then the .pdf is saved under the original name, but if I fill in the field, nothing is saved. I've also tried SaveAttachments and it doesn't work there either.+
3) Thanks for the tip, but that's exactly how the process is supposed to behave.
Do you have any other ideas why it's not working?
04-06-24 11:10 AM
If I understood correctly when you try the Save Attachment action it doesn't work when you put ("file.pdf") in the filename field. If you want to save pdf files you only need to put "*.pdf" in filename. See below the documentation :
Try to use Save Attachements and provide inputs like this :
I hope it will help you :)
04-06-24 03:55 PM
Hi @lorenzwagner Field 'File Name' in VBO action denotes which attachment in the list of attachments of email you want to save. Its does not mean the file name with which you want to save the file as.
Therefore, if you give a name which is not present in the list of attachment , action will not do anything as there is no attachment with that file name.
If you do not give any file name default value of *.*is taken and it will save all attachment/attachments.
If you want to change the name with which an attachment should be saved instead of original name, you will need to modify the code a stage a little,
Add an additional parameter lets says saveas and modify the code stage sth like below.