PTNotification method: PTNotification class
Syntax
PTNotification(Notification_name)
Description
PTNotification is a constructor method for the PTNotification class. Use PTNotification to instantiate an instance of the class.
The default event name is SENDNOTE.
Parameters
| Parameter | Description |
|---|---|
|
Notification_name |
Specifies the notification as a String value. |
Returns
None.
Example
import PTNOTIFICATIONS:PTNotification;
Local object &objBroadcast = create PTNOTIFICATIONS:PTNotification("BROADCAST");
&objBroadcast.AddRecipient(1, "PTDMO");
&objBroadcast.AddRecipient(2, "Peoplesoft User");
&objBroadcast.AddRecipient(3, "external@peoplesoft.com");
&objBroadcast.AddRecipient(4, "+91000000000");
&objBroadcast.SetMessage("This is for demo", 0);
&objBroadcast.SetCategory("FYI");
&bRetCode = &objBroadcast.Send();