MarkLogic Server 11.0 Product Documentation
alert.actionSetModuleDb

alert.actionSetModuleDb(
   action as Object,
   module-db as (Number|String)
) as Object

Summary

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.

Example

  const alert = require("/MarkLogic/alert.xqy");

  alert.actionSetModuleDb(
       alert.getActions("http://acme.com/alert/message-board", ["sms"])[0],
       xdmp.database("Modules"))
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy