alert.configSetCpfDomainNames

alert.configSetCpfDomainNames(
   config as Object,
   names as String[]
) as Object

Summary

This function sets the CPF domain names in the specified alerting configuration.

Parameters
config The specified alerting configuration.
names The name(s) of the domains to use with this alerting configuration. The names must be valid domain names for the database in which the alerting config references.

Example

  const alert = require("/MarkLogic/alert.xqy");

  alert.configSetCpfDomainNames(
             alert.configGet("http://acme.com/alert/message-board"), 
             ["Default Documents"])
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy