Loading TOC...

alert.actionSetName

alert.actionSetName(
   $action as Object,
   $name as String
) as Object

Summary

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.

Example

  var 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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.