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

Comments

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