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.
description The description value to set for the given action.

Example

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

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