Do you know how to fetch the output from powershell script and convert it to string ?
I was able to find anything that could help me with that issue.
Now when I am trying to run script and get the output and display it or store as a string I receive the error like:
“Check Outlook Failed, Reason: Object reference not set to an instance of an object.”
Yes I used another powershel action actually and modified a little the script.
I should have access to this on Tuesday so please remind me then and I will share my solution.
i am trying to get the output from a invoke powerwhell activity but no success…could you share how i have to run the powershell script and get the output into a string variable? .
Can you please help guide from which package “Run Power Shell” can be leveraged? By default only “Invoke Power Shell” activity is available. Appreciate your inputs.
Thanks for the message. Have you made any tries until now?
I will try to find some time to check it and will reply to this post later on
Once we find the solution we can edit the Title of this thread or set the new one to make it easier to search.
The package is not fully supported and was taken off the feed almost a year ago (you could still download it if you had it in your projects but you could no longer find it).
If you want to invoke PowerShell, you should use this one instead:
When we execute a Powershell script using the activity ‘Invoke Power Shell’, how do we read the output printed on the powershell console back in UiPath?
Eg: My script only prints “Write-Host My name is - $myName”
I want to get this value “My name is - XYZ” in UiPath as a string.
I’d like to get the OUTPUT of the script as it would look like when executing it in the command line. The text that it would write on StdOut or whatever. Not the output var from the activity or anything.
Is it DEFINITELY a way of doing it? Can anyone from the STAFF drive us STRAIGHT to the RIGHT answer?