Loading TOC...

MarkLogic 10 Product Documentation
alert:rule-get-user-id

alert:rule-get-user-id(
   $rule as element(alert:rule)
) as xs:unsignedLong

Summary

This function returns the user ID of a given rule.

Parameters
$rule The representation of a rule.

Example

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

  let $rule := alert:get-all-rules("http://acme.com/alert/message-board", cts:word-query("dna"))

  return alert:rule-get-user-id($rule)
  => 123456789
  

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