alert.actionGetModuleRoot( action as Object ) as String
This function returns the module root of a given action.
Parameters | |
---|---|
action | The representation of an action. |
const alert = require("/MarkLogic/alert.xqy"); alert.actionGetModuleRoot( alert.getActions("http://acme.com/alert/message-board", ["sms"])[0])