alert.actionSetModuleDb( action as Object, module-db as (Number|String) ) as Object
This function sets the module database of a given action.
Parameters | |
---|---|
action | The representation of an action. |
module-db | The ID of the database containing the module of the action. |
const alert = require("/MarkLogic/alert.xqy"); alert.actionSetModuleDb( alert.getActions("http://acme.com/alert/message-board", ["sms"])[0], xdmp.database("Modules"))