Loading TOC...

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.
$moduleThe module value to set for the given action.

Example

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

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy