Pass an argument into an Invoke Powershell activity

Hi folks,

I’m trying to have my bot process execute a powershell script to rename a file. It looks something like this…

Rename-Item -Path “c:\FileName.xlsx” -NewName “[Argument].xlsx”

I’m passing in arguments through the Invoke Workflow activity and I want one of these arguments to be the file name. I am having trouble with the syntax on this one

As usual the answer is I’m a dummy.

Turns out you need to pass the variables in with this property of the Invoke Powershell activity.

It is as if Uipath thought this out for us…

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