Modifier and Type | Method and Description |
---|---|
NotificationMessage |
newNotificationMessage()
Creates a new
NotificationMessage object to set subject, message, notification text and tokens to use in a notification. |
NotificationParameters |
newNotificationParameters()
Creates a new
NotificationParameters object to set the parameters of the notification. |
NotificationTemplate |
newNotificationTemplate()
Creates a new
NotificationTemplate object to set the template to use and tokens to resolve for a notification. |
void |
send(NotificationParameters parameters,
NotificationMessage message)
Sends a notification with message content.
|
void |
send(NotificationParameters parameters,
NotificationTemplate template)
Sends a notification with pre-defined template content.
|
NotificationParameters newNotificationParameters()
NotificationParameters
object to set the parameters of the notification.
For example, it can be used to specify the sender id, a set of recipient ids, and whether a notification is sent
with the email.NotificationParameters
NotificationTemplate newNotificationTemplate()
NotificationTemplate
object to set the template to use and tokens to resolve for a notification.NotificationTemplate
objectNotificationMessage newNotificationMessage()
NotificationMessage
object to set subject, message, notification text and tokens to use in a notification.NotificationMessage
objectvoid send(NotificationParameters parameters, NotificationMessage message)
If send() is called before NotificationParameters has set recipients with setRecipientsByUserIds(), setRecipientsByGroups(), or setRecipientsByRecordRoles(), an error will occur.
If at least one of these setRecipientsBy### methods has been called with a non-null Set/List, an error will not occur.
parameters
- notification parameters set for the notificationmessage
- message contentvoid send(NotificationParameters parameters, NotificationTemplate template)
If send() is called before NotificationParameters has set recipients with setRecipientsByUserIds(), setRecipientsByGroups(), or setRecipientsByRecordRoles(), an error will occur.
If at least one of these setRecipientsBy### methods has been called with a non-null Set/List, an error will not occur.
parameters
- notification parameters set for the notificationtemplate
- content from a templateCopyright © Veeva Systems 2017–2019. All rights reserved.