alert.actionSetModuleRoot( action as Object, module-root as String ) as Object
This function sets the module root of a given action.
Parameters | |
---|---|
action | The representation of an action. |
module-root | The new modules root for the action. |
const alert = require("/MarkLogic/alert.xqy"); alert.actionSetModuleRoot( alert.getActions("http://acme.com/alert/message-board", ["sms"])[0], "/root")