alert.actionSetName( action as Object, name as String ) as Object
This function returns the action with the name of the action updated.
Parameters | |
---|---|
action | The representation of an action. |
name | The name value to set for the given action. |
const alert = require("/MarkLogic/alert.xqy"); alert.actionSetName( alert.getActions("http://acme.com/alert/message-board", ["sms"])[0], "email") => sms action with name updated to "email"