How can i rename this files i select with this activities
its an automation to send files to sign in a website called Docusign, but i need the files renamed to organize what was send, cant use move file activitie to rename because the files isnt in the same folder everytime, i have 300 file types and i use a forms to select witch ones will be select, than the select file popsup and i select the correct number of files, but i cant find a way to rename
You can use the Move File activity to rename a file:
cant, because i dont know the file name, its different every time
The Select File activity returns a file name. If you save it to a variable called oldFileName you can generate the new file name like this:
newFileName = Path.Combine(Path.GetDirectoryName(oldFileName), "new.txt")
Sorry, you should use an Assign activity.
or if you don’t what to use Assign, just put the right part in the To Destination field:
works, thank you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.