Skip to main content

Hello,

 

We’re trying to use the “Run Script” action to run a powershell script. Powershell uses $ symbols to signify a powershell variable.  We’re noticing that scripts don’t run correctly anytime there’s more than 1 $ in the script.  My assumption is that when the script runs, it’s trying to evaluate everything between $ symbols as an RPA variable. If this is the case, how can we escape a $ symbol so that Nintex RPA doesn’t try to interpret it as an RPA variable?


I’m assuming this is an issue where ever variables can be used. As an example, using this “Set value” action:

 

Results in this output:

 

Any advice would be appreciated. 

Hi @bsikes 

You are typing to insert a variable value within a variable.
Since the variable is not declared, it evaluates as -blank-
That's why variable testdollar variable evaluates as “Debits: 456.00

 

https://help.nintex.com/en-US/kryonrpa/22.9.1/Content/AdvancedCommands/VariableCommands/Set_Value.htm


 


Thanks for the response @Garrett 

 

I assumed that’s what was happening - I just also assumed there would be a way to escape the special character to indicate it should literally be there.  That being said, using “Set Value” to set a variable equal to $, and then using that variable for the script did work. 

 

Also, thanks for screenshot of help doc. I looked at that page quite a few times and for some reason never saw that note. 


Reply