Is there a way to save an attachment (pdf) using a variable ( <%invoicenumber%>)? The only option I can get working is saving the attachment with the original name. So maybe this is a feature request??
Hi James,
Yes, I think this may be a feature request.
With the current version (4.5), I think that the best way is to just rename the attachment. You have to use the "Run command" automated process to run the rename command.
And if you expect more than one attachment you will have to use the automated process type "Repeat for each value"
Yes, I think this may be a feature request.
With the current version (4.5), I think that the best way is to just rename the attachment. You have to use the "Run command" automated process to run the rename command.
And if you expect more than one attachment you will have to use the automated process type "Repeat for each value"
Ok, thanks for the input. I tried the solution and now I struggle with attachments that have a space in the filename. I know I have to put quotes around them ("") but I can only put the quotes around the attachment variable with contains the whole path to the file along with the filename. I don't seem to be able to put the quotes around just the filename in which case it should work just fine. Example:
Attachment Filename: Factuur 17220233.pdf
Attachment variable: C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf
With quotes (command prompt): rename "<attachment>" <invoice>.pdf
This will translate to:
rename "C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf" 17220233.pdf
where it should be :
rename C:\Users\XX\Documents\XXXXXXX\"Factuur 17220233.pdf" 17220233.pdf
I hope you understand the problem if not feel free to ask for more details.
Regards, J
Attachment Filename: Factuur 17220233.pdf
Attachment variable: C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf
With quotes (command prompt): rename "<attachment>" <invoice>.pdf
This will translate to:
rename "C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf" 17220233.pdf
where it should be :
rename C:\Users\XX\Documents\XXXXXXX\"Factuur 17220233.pdf" 17220233.pdf
I hope you understand the problem if not feel free to ask for more details.
Regards, J
Hi James
As far as I know the correct way is:
rename "C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf" 17220233.pdf
What do you get after running the rename command?
This will translate to:Are you sure the double quotes should be enclosing the file name only?
rename "C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf" 17220233.pdf
where it should be :
rename C:\Users\XX\Documents\XXXXXXX\"Factuur 17220233.pdf" 17220233.pdf
As far as I know the correct way is:
rename "C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf" 17220233.pdf
What do you get after running the rename command?
Hi Carlos,
yes, you are so right! I don't know where I went wrong but somehow I made the same mistake over and over again (maybe I need to sleep a little bit more?
). The correct way is:
rename "C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf" 17220233.pdf.
Tested it and works just fine!
Sorry for that!

yes, you are so right! I don't know where I went wrong but somehow I made the same mistake over and over again (maybe I need to sleep a little bit more?

rename "C:\Users\XX\Documents\XXXXXXX\Factuur 17220233.pdf" 17220233.pdf.
Tested it and works just fine!
Sorry for that!


- All times are UTC -
