
alert:get-actions( $config-uri as xs:string, $names as xs:string* ) as element(alert:action)*
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. |
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.