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. |
var alert = require("/MarkLogic/alert.xqy"); alert.actionSetModuleDb( alert.getActions("http://acme.com/alert/message-board", ["sms"])[0], xdmp.database("Modules"))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.