Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+3 votes
2 views
in RPA by (12.7k points)

I am kicking off a PowerShell script with UiPath. I need to pass an argument in, from UiPath. Firstly is this possible and secondly does anyone have an example of this? Not sure what the syntax is for this in the PowerShell script

1 Answer

+4 votes
by (29.5k points)
edited by

 Yes it is possible to pass arguments from Uipath to the terminal. For this to work, you need to store your PowerShell script in a txt file. Add a "Read Text file" activity and on filename add your PowerShell script. Next Add "Invoke Power Shell" activity and you must set  "ContinueOnError" to True and check "IsScript". 

Looking for RPA material from basics! Refer to this video on RPA provided by Intellipaat:

Next step is with the "Invoke power shell" activity selected go to on the right panel and click on "..." button from Parameters. In the screen that will open you can add your parameters.

You can refer to this article for more clarity https://www.uipath.com/kb-articles/it-automation-powershell-read-text-files

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...