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.
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.
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.