fferpcore.ffasync_Notificationglobal inherited sharing class ffasync_Notification Holds information for Notifications. The following default Notification types are supported: Task; Chatter; Email. If Task or Chatter notifications are not enabled then an Email notification is sent for error messages. fferpcore.ffasync_Notification.TaskNotificationglobal inherited sharing class TaskNotification implements ffasync_IAction Class for Task Notification This class implements the following interfaces: Methods
TaskNotificationglobal TaskNotification(fferpcore.ffasync_ProcessService.NotificationData data, String priority) Generates a task notification containing the default values for Text, Priority and Application Details. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. String priority = 'High'; String appName = 'Certinia'; User u; // should be the required user Set<User> usersToBeNotified = new Set<User>{u}; fferpcore.ffasync_ProcessService.NotificationData data = new fferpcore.ffasync_ProcessService.NotificationData(usersToBeNotified, appName); fferpcore.ffasync_Notification.TaskNotification taskNotification = new fferpcore.ffasync_Notification.TaskNotification(data, priority); TaskNotificationglobal TaskNotification(fferpcore.ffasync_ProcessService.NotificationData data) Generates a task notification containing the default values for Text, Priority and Application Details. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. String priority = 'High'; String appName = 'Certinia'; User u; // should be the required user Set<User> usersToBeNotified = new Set<User>{u}; fferpcore.ffasync_ProcessService.NotificationData data = new fferpcore.ffasync_ProcessService.NotificationData(usersToBeNotified, appName); fferpcore.ffasync_Notification.TaskNotification taskNotification = new fferpcore.ffasync_Notification.TaskNotification(data, priority); fferpcore.ffasync_Notification.ChatterNotificationglobal inherited sharing class ChatterNotification implements ffasync_IAction Class for Chatter Notification This class implements the following interfaces: MethodsChatterNotificationglobal ChatterNotification(fferpcore.ffasync_ProcessService.NotificationData data) Generates Chatter Notifications for the supplied Users, including the current User, for the specified Process Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. User u; // should be the required user Set<User> usersToBeNotified = new Set<User>{u}; String appName = 'Certinia'; fferpcore.ffasync_ProcessService.NotificationData data = new fferpcore.ffasync_ProcessService.NotificationData(usersToBeNotified, appName); fferpcore.ffasync_Notification.ChatterNotification chatterNotification = new fferpcore.ffasync_Notification.ChatterNotification(data); fferpcore.ffasync_Notification.EmailNotificationglobal inherited sharing class EmailNotification implements ffasync_IAction Class for Email Notification This class implements the following interfaces: Methods
EmailNotificationglobal EmailNotification(fferpcore.ffasync_ProcessService.NotificationData data) Generates email notifications for the supplied Users, including the current User, with the supplied Application Details. These details are set in the From field of the email. The default is Certinia. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. Set<String> usersToBeNotified = new Set<String>{'user@ff.com'}; String appName = 'Certinia'; fferpcore.ffasync_ProcessService.NotificationData data = new fferpcore.ffasync_ProcessService.NotificationData(usersToBeNotified, appName); fferpcore.ffasync_Notification.EmailNotification emailNotification = new fferpcore.ffasync_Notification.EmailNotification(data); EmailNotificationglobal EmailNotification(fferpcore.ffasync_ProcessService.NotificationData data, Set<String> recipientEmails) Generates email notifications for the supplied Users, including the current User, with the supplied Application Details. These details are set in the From field of the email. The default is Certinia. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. Set<String> usersToBeNotified = new Set<String>{'user@ff.com'}; String appName = 'Certinia'; fferpcore.ffasync_ProcessService.NotificationData data = new fferpcore.ffasync_ProcessService.NotificationData(usersToBeNotified, appName); fferpcore.ffasync_Notification.EmailNotification emailNotification = new fferpcore.ffasync_Notification.EmailNotification(data); |