This section provides the event and associated payload of the Notification microservice.

Event

SL.#NAMEDESCRIPTIONPUBLISH LOCATIONROUTING KEYDURABILITYPAYLOAD TYPE
1Notification QueueNotification service can subscribe to the notification queue to which the other services can send the events. When an event is triggered (for example, when a user is created), it is pushed into the notification queue. Notification service listens to that event message. Based on the payload data, which contains collection ID and event name, either sendEmail or sendSms action will be triggered.NAtrueNotificationQueue

Payload Model

NotificationQueue

PROPERTYTYPEDESCRIPTIONEXAMPLE
notification[].nameStringHolds the name of the notification.USER_INVITEUSER
notification[].recipients[].bccs[].emailStringRefers to the recipient's email address for the email notification.xyz@xyz.com
notification[].recipients[].bccs[].nameStringIndicates the name of the recipient.xyz
notification[].recipients[].ccs[].emailStringRefers to the recipient's email address for the email notification.xyz@xyz.com
notification[].recipients[].ccs[].nameStringIndicates the name of the recipient.xyz
notification[].recipients[].tos[].emailStringRefers to the recipient's email address for the email notification.xyz@xyz.com
notification[].recipients[].tos[].nameStringIndicates the name of the recipient.xyz
notification[].recipients[].phoneStringRefers to the recipient's phone number for the SMS notification. An SMS will be sent to this phone number.9876543210
notification[].recipients[].pushIdStringIndicates the push ID of iOS, which is used to create pop-up messages in the application.hj7sdf67sqc9
notification[].recipients[].macrosHashMapContains a list of macro name and value pairs. The given values will be replaced for the macro names in the email template.




Revision History
2019-06-10 | PLK – Minor copyedits.
2019-05-17 | Mary – Updated to a new table tool.
2019-04-11 | Ananthi – Content updated for April 2019 release.
2019-01-23 | PLK – Content uploaded.