
alert.actionSetDescription( action as Object, description as String ) as Object
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. |
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.