Unable to pass argument to powershell file via powershell action step
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
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
The action input it
The value that is passed as parameter is
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
0 REPLIES 0
