Hello,
I was wondering if someone could help me, I'm looking at how you can update trigger actions as I want to update who the alert goes out to.
I can the see that there is an Orion.Actions.UpdateActionsDescriptions which would appear to be the one as the action is held in the description column. However I'm not sure how I build the XML string for this particular request, the SWQL Studio gives the following info:
<ArrayOfKeyValueOfNullableOfintstringRDHGY3MA xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
I'm not sure what values actually need to be populated into this array though. e.g for acknowledging an alert you'd do:
<ArrayOfint xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>
<int>$($alert)</int>
</ArrayOfint>
I've tried this:
<ArrayOfKeyValueOfNullableOfintstringRDHGY3MA xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>
<int>138</int>
<string>Email</string>
<string>Test</string>
<boolean>True</boolean>
<int>1</int>
<string>Send Level 1 SMS</string>
</ArrayOfKeyValueOfNullableOfintstringRDHGY3MA>
Unfortunately I just an error:
Invoke-SwisVerb : Error occured while updating action descriptions.
Could anyone advise how I would do this?
Thanks