How to rename files that was select with Select files activities

How can i rename this files i select with this activities
image

Hi @Leonardo_Andreola

Could you elaborate the scenario more that you’re actually trying to do?

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:

image

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")

image

1 Like

Sorry, you should use an Assign activity.

image

or if you don’t what to use Assign, just put the right part in the To Destination field:

image

1 Like

works, thank you

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.