Loading TOC...

MarkLogic Server 11.0 Product Documentation
alert:get-actions

alert:get-actions(
   $config-uri as xs:string,
   $names as xs:string*
) as element(alert:action)*

Summary

This function retrieves all the named actions in the specified config URI. Returns a list of actions.

Parameters
config-uri The URI passed to alert:make-config .
names The names of the actions to retrieve, possibly using wildcards.

Example

  xquery version "1.0-ml";
  import module namespace alert = "http://marklogic.com/xdmp/alert" 
		  at "/MarkLogic/alert.xqy";

  alert:get-actions("http://acme.com/alert/message-board", ("sms", "email"))
  => Returns the XML representation of the actions for SMS and email
  alert:get-actions("http://acme.com/alert/message-board",("*"))
  => Returns all actions in the specified alerting configuration
  

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