Search
-
PowerShell Activity - allow user-defined strings to be mapped to script parameters
For standard Runbook activities, I can enter my own string into the parameter mapping if I don't want to map an object property. I would like to see this added to CPAs. With this feature, I could make my PowerShell scripts more dynamic, and use a constant in my SR templates to define which action the script should take.… -
Re: PowerShell Activity - allow user-defined strings to be mapped to script parameters
Yup, upvoted. Workaround I have used is to extend the PowerShell Activity class with String 1 etc or a JSON blob property and then grab that once inside the PowerShell. So you would just pass in Activity ID using the current params functionality and then in the code grab the ID, grab the object with Get-SCSMObject -Id and…