
alert.actionSetName( action as Object, name as String ) as Object
This function returns the action with the name of the action updated.
| Parameters | |
|---|---|
| action | The representation of an action. |
| name | The name value to set for the given action. |
const alert = require("/MarkLogic/alert.xqy");
alert.actionSetName(
alert.getActions("http://acme.com/alert/message-board", ["sms"])[0],
"email")
=> sms action with name updated to "email"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.