Loading TOC...

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"))
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.