NotificationTemplate method: notification classes class

Syntax

NotificationTemplate(ComponentId, Market, TemplateId, TemplateType)

Description

Use NotificationTemplate to instantiate a notification template.

If you're specifying a generic template, the first two parameters do not have to have values, that is, you must specify a Null string ("") instead.

Parameters

Parameter Description

ComponentId

Specify the name of the component the notification is coming from as a string. To specify a generic template, you must specify a Null string ("") for this value instead.

Market

Specify the name of the market of the component the notification is coming from as a string. To specify a generic template, you must specify a Null string ("") for this value instead.

TemplateId

Specify the template ID as a string.

TemplateType

Specify the type of template as a string. Values are:

  • G: generic template

  • C: component template

Returns

An instance of the NotificationTemplate class.

Example

import PT_WF_NOTIFICATION:*;

import PT_WF_WORKLIST:*;

Local NotificationTemplate &Notify_Temp;

/* create a generic template */

&Notify_Temp = Create NotificationTemplate("", "", "MyTemplate", "G");

Related Topics