Click or drag to resize

INotificationServiceSendTemplatedNotification Method

Send a notification using a template to one or more addresses.

Namespace:  SanteDB.Core.Notifications
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
Guid[] SendTemplatedNotification(
	string[] to,
	string templateId,
	string templateLanguage,
	Object templateModel,
	DateTimeOffset? scheduleDelivery = null,
	bool ccAdmins = false,
	params NotificationAttachment[] attachments
)

Parameters

to
Type: SystemString
The scheme qualified addresses to send the notification to.
templateId
Type: SystemString
The template identifier that is available in the INotificationTemplateRepository.
templateLanguage
Type: SystemString
The language spoken to define which template language variant to use.
templateModel
Type: SystemObject
The data model to use when filling the template.
scheduleDelivery (Optional)
Type: SystemNullableDateTimeOffset
Delay sending the notification to a particular time in the future.
ccAdmins (Optional)
Type: SystemBoolean
True to also send the notification to the defined administrators in the configuration.
attachments
Type: SanteDB.Core.NotificationsNotificationAttachment
Zero or more attachments to include with the notification.

Return Value

Type: Guid
An array of identifiers that correspond to the notifications.
See Also