Loading TOC...

alert.actionSetOptions

alert.actionSetOptions(
   $action as Object,
   $options as Object
) as Object

Summary

This function returns the action with the options of the action updated.

Parameters
$action The representation of an action.
$optionsThe options to set for the given action.

Example

  var alert = require("/MarkLogic/alert.xqy");

  alert.actionSetOptions(alert.getActions(
         "http://acme.com/alert/message-board", ["sms"])[0],
         {"provider":[{"name":"ATT", "domain":"att.com"}]}) 

  =>  Returns a JSON representation of the action with the new option.
  

Comments

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