PowerShell to create Action Log entry
I have a SCORCH runbook to create an Action Log entry for work items. Since I'm using integration pack actions to achieve this, I have to configure identical runbooks for each SCSM farm due to static connection settings. This becomes a problem when I'm migrating because this runbook is invoked within many other runbooks and I have to reconfigure parameters each time.
For similar issues, I've replaced the integration pack actions with PowerShell, however creating an Action Log entry is proving to be less straightforward.
Does anybody have a solution to this?