Send Notification With Files Step
  • 16 Dec 2022
  • 1 Minute to read
  • Dark
    Light

Send Notification With Files Step

  • Dark
    Light

Article Summary

Step Details

Introduced in Version5.0.0
Modified in Version5.0.0
LocationCommunication > Notification

The Send Notification With Files step allows a user to create a notification based on an event.


Properties

Inputs

PropertyDescriptionData Type
FilesFiles to attach to the notificationList of FileData
Folder IdThe ID of the Folder
String
MessageText to display in the notificationString
MsgtypeDefines how the notification will be displayedNotificationMessageType
Notification Type NameThe name of the event that triggers when the notification is sent
String
SubjectDefines the text to display on the Subject line of the notificationString

Example Inputs and Outputs

FilesFolder IdMessageMsgTypeNotification Type NameSubjectOutput
Testing.txt08da350c-a363-1c66-be28-db5e3404abff
Example Message
Information
Article Created
New Notification
Done
NULL08da350c-a363-1c66-be28-db5e3404abff

Example Message
Information
Article Created
New Notification
EXCEPTION
Testing.txt
08da350c-a363-1c66-be28-db5e3404abff

Example Message
Information
Article created
New Notification
EXCEPTION


Common Errors

Incorrect or missing Notification Type Name

If the Notification Type Name does not exist under Administration > Notification > Notification Types and is case sensitive. If the Notification Type Name is incorrect or missing, then the step will throw the following exception. This can be resolved by ensuring the Notification Type Name exists and that the casing matches.

Exception Message:

Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] Could not find notification type named Example Notification
   at DecisionsFramework.ServiceLayer.Services.Notifications.SendNotificationSteps.SendNotificationWithFiles(String folderId, String notificationTypeName, String subject, String message, FileData[] files, NotificationMessageType msgtype)



Related Information

Articles:
Setting Up Notifications for Events
Controlling Assignment Notification Types for Server


Was this article helpful?