Unable to pass argument to powershell file via powershell action step

KHyatt
Tera Contributor

Hi,

I have a Powershell file on MID server that can be called sucessfully with the Powershell Action Step. It returns the output and a json but the argument is not received by it. What am i doing wrong? Any help would be appreciated.

 

Param (
[string]$CustID)

Write-output "Hi $CustID"

Get-LocalUser 'test_local' | ConvertTo-JSON

 

The action step script is

scriptfile.png

The action input it

input.png

The value that is passed as parameter is

input_filled.png

The output is returned successfully but the parameter was not received, so nothing after the Hi. It should say "Hi John" as I passed John as the parameter

output.png

0 REPLIES 0