Loading TOC...

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.
$descriptionThe 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"
  

Comments

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