alert.actionSetOptions( action as Object, options as Object ) as Object
This function returns the action with the options of the action updated.
Parameters | |
---|---|
action | The representation of an action. |
options | The options to set for the given action. |
var alert = require("/MarkLogic/alert.xqy"); alert.actionSetOptions(alert.getActions( "http://acme.com/alert/message-board", ["sms"])[0], {"provider":[{"name":"ATT", "domain":"att.com"}]}) => Returns a JSON representation of the action with the new option.