MarkLogic Server 11.0 Product Documentation
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.
options The options to set for the given action.

Example

  const 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.
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy