@notification::setPresentationScript

Sets the presentation script to be used for this notification. This will automatically switch the notification to presentation content mode. This method no longer functions after the performNotification method has been called.

In version 4.1 (patch 002 or later), a new parameter was added that allows you to specify the Device Type for which the presentation script will be run. This helps reduce processing load and improve notification performance by limiting the amount of notification content the system has to generate. If you specify a Device Type, then the presentation script will be run only for notifications sent to that Device Type, and not for any other types. If this method is specified for the same Device Type more than once, then the latter instance will take precedence.

Syntax:

@notification::setPresentationScript(String presentationScriptId[, String deviceType])

Parameters:

Returns:

(Boolean) true for success; false for failure

Example:

The following script sets a presentation script for a notification and forces the content mode to be presentation script based:

@notification::setPresentation("generic")

 

The following script sets a presentation script for a notification sent to email Devices, and forces the content mode to be presentation script based:

@notification::setPresentation("messaging", "EMAIL")