I am trying to use powershell to invoke-swisverb and automate updating some alertaction's EmailTo property. Based on the examples I have found online this should be how the command should be formatted.
Invoke-SwisVerb -EntityName Orion.Actions -Verb UpdateActionsProperties -SwisConnection $swis -Arguments @(@{PropertyName = 'EmailTo';PropertyValue = 'newemail@myorg.com'},{1110,1111})
When I run the above it returns an object of XmlElement, which has a #text property that has value 'true'; however, the alert is not updated.
I have also tried the following, but with the same result (XmlElement returned, but it doesn't update the alert properties).
Invoke-SwisVerb -EntityName Orion.Actions -Verb UpdateActionsProperties -SwisConnection $swis -Arguments @(@{EmailTo='newemail@myorg.com'},{1110,1111})
Can anyone help me spot what I'm doing wrong?