Unable to pass argument to powershell file via powershell action step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @KHyatt
If no output is defined, nothing will be output by default (OOTB). Therefore, we recommend defining outputs both for individual steps and after the entire sequence of actions.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
