alert.actionGetName

alert.actionGetName(
   action as Object
) as String

Summary

This function returns the name of a given action.

Parameters
action The representation of an action.

Example

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

  alert.actionGetName(
       alert.getActions("http://acme.com/alert/message-board", ["sms"])[0])

  => sms
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy