MarkLogic 9 Product Documentation
alert.actionSetDescription

alert.actionSetDescription(
   action as Object,
   description as String
) as Object

Summary

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

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

Example

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

  alert.actionSetDescription(
     alert.getActions("http://acme.com/alert/message-board", ["sms"])[0],
     "New description")

  => Returns the JSON representation of the action with the 
     description updated to "New description"
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy