Loading TOC...

MarkLogic Server 11.0 Product Documentation
alert:rule-user-id-query

alert:rule-user-id-query(
   $user-ids as xs:unsignedLong*
) as cts:query

Summary

This function creates a query to find rules with any of the specified user IDs. Returns a query to be passed to alert:get-my-rules or alert:get-all-rules .

Parameters
user-ids A list of user IDs for the rules to be retrieved.

Example

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

  alert:get-all-rules("my-alert-config", 
	  alert:rule-user-id-query((192837465, 192837466)))
  =>Returns the rules with user IDs 192837465 or 192837466
  

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