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"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.