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