John Zhang1
Kilo Patron
Kilo Patron

There are 4 ways to send a notification through Flow created by flow designer.  This blog will introduce all types of notifications so you can learn which approach is the best approach for you.

 
Type of a flow notification
  • Event notification - pre-requirement is that you need to create an event and a notification on the target table and configure the event into the notification.   When the event is triggered, a notification will be sent out.  There are two ways to configure an event in flow:  1) Configure the access directly to the event table (sysevent) ; 2) use a flow action script 
  • Trigger notification - configure "Send when field" of a notification section (  When to send  )  to "Triggered" and then configure this notification directly in a flow using the flow action: " Send notification"
  • Send Email - use the action-"Send Email" to configure the notification.

Flow Even Notification

Pre-work- we need to create the following tasks before we can configure the event in flow of flow designer:

  • Create an event- go System Policy->Events->Registry to create an event blow:
JohnZhang1_0-1696017536268.png

 

  • Create a notification by configuring the event- flow.incident.notification created above.
JohnZhang1_1-1696017536272.png

 

JohnZhang1_2-1696017536274.png

 

Create Event flow- configure the event(sysevent) table (Approach 1)

  • Configure flow trigger blow:
JohnZhang1_3-1696017536276.png

 

  • Configure the Event table (sysevent)

For instance, please select sysID field of target table

JohnZhang1_4-1696017536284.png

 

Test Steps:

  • Find one opened incident record and change its state value.
  • Verify the generated notification via email log.
JohnZhang1_5-1696017536285.png

 

Create Flow Action- configure the event within Script steps (Approach 2)

  • Create new Flow action below by adding   gs.eventQueue('flow.incident.notification'); in Script section if Script step.
JohnZhang1_6-1696017536288.png

 

  • Create a Flow to configure the action flow defined above
JohnZhang1_7-1696017536290.png

 

Test Steps:

  • Find one opened incident record and then save the change after changing "assigned to: field value.
  • Verify the notification on emails log.
JohnZhang1_8-1696017536291.png

 

 

Flow Send Notification – trigger a notification.

This approach is to trigger a notification directly from a flow directly without using any event.  Pre-condition is that create new notification with “Triggered” value in "Send when" field under When to send in a notification.

  • Create Triggered notification below:
JohnZhang1_9-1696017536294.png
  • Create a flow to configure the triggered notification.
JohnZhang1_0-1696018344372.png

 

Test Case

  • Opened one opened incident and save after changing short description value.
  • Go “Emails” log to see whether a notification shall be triggered (see below)
JohnZhang1_2-1696018439066.png

Send Email – configure directly in flow without pre-requirement.

  • Create a flow to create “Send Email” action.
JohnZhang1_3-1696018486122.png

 

  • Configure Send Email below.
JohnZhang1_4-1696018532513.png

Summary

I have listed the detail of steps to create a notification for 4 type of notification.  You can see the event notification is more advanced approach than others.  The event notification can be used for multiple notification as well as easily configured.

 

However, “Send Email” has less flexibility to be used.

 

If you like this post, please mark my post useful