alert.actionSetModule

alert.actionSetModule(
   action as Object,
   module as String
) as Object

Summary

This function returns the action with the module of the action updated.

Parameters
action The representation of an action.
module The module value to set for the given action.

Example

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

  alert.actionSetModule(
       alert.getActions("http://acme.com/alert/message-board", ["sms"])[0],
       "/modules/sms.xqy")

   => Returns the JSON representation of the action with the module 
      updated to "/modules/sms.xqy"
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy