Loading TOC...

MarkLogic Server 11.0 Product Documentation
alert.actionSetModuleRoot

alert.actionSetModuleRoot(
   action as Object,
   module-root as String
) as Object

Summary

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.

Example

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

  alert.actionSetModuleRoot(
         alert.getActions("http://acme.com/alert/message-board",  ["sms"])[0],
         "/root")
  

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