ServiceNow Event Use Case: Simplify Incident Reassignment Notification
[Music] hi all and welcome back so in today's tutorial we'll be looking on one of the use case okay and as a part of this use case we'll be seeing how we can trigger an event from business rule and how that particular business that particular event lead to the trigger of the notification okay so the use case is pretty simple and you must have phased this out in your organization also so you know the incident table right okay and whenever an incident come into a queue of any assignment group okay so no one wants to work on that incident right okay who wants to work on that incident right so it gets assigned one group will get assigned to another group and another group will keep on assigning to the next group okay and it keeps on going okay so what we want to do we want to avoid this out so what we want to do as a part of this use case is like whenever we instant get reassigned to different different groups multiple times okay then we want to trigger notification to the caller saying hey they are playing with your incident okay so how to get it done so let's move on to the Instagram table let's first understand the structure of incident table okay so I will just go to incident.2 get a new record and for example this particular incident is getting a person called able tutor is creating an incident okay with it name as a short description test incident and now it got assigned to a person okay assigned to a group called analytic settings manager okay I will save it out and now there is a field on The Institute table okay if I show right click show XML and there is a field called reassignment count so with that reassignment count and this is zero right now so what exactly this field signifies okay so this will get updated whenever you change the assignment group so if you and currently 0 because it's not reassigned okay it's just assigned to a group okay now if these group members reassign this incident to some different group okay then this particular field will get increment okay so let's let's change this so I will remove this group out let's select some different group called service level Management Group if I save this out that they will be working on this incident okay and if I go and do show XML and now if I do check for reassignment count where is that reassignment count three or seven count so now you can see the reassignment count got incremented by one okay so we have to just follow the same use case Okay so whenever you see incidents get reassigned okay multiple times for example two times three times okay then we want to send the notification to the user okay so let's get done so first of almost seeing what we will be doing we will create an event so how to create an event you have to just go to registry and that will be under system there is a event registry okay this is system policy event registry okay just go over there let's create a event I clicked on new which is taking some time so this is where the all the event gets stored okay cancel I don't want running transactions wow got blanked let's do it again okay let's click on new this is the fresh instance I created in the morning only and it's not helping me out on much taking running transactions pretty interesting because this is the newest affiliate upgrade so let's give a event a name okay so I will give incident Dot 3 assignment I always use lowercase okay whenever I am creating a series so you can follow the same or you can have your own naming convention so incident.reassment I will just copy it hold because I want to use it out and on which particular table it's acting so it's incident table right so let's select incident table over here incident table fired by it will be a business rule foreign [Music] we'll save this out now as a Next Step what we want to do we want to create a notification so you can see the related list over here let's go with that only so we'll create a notification let's create a new notification which will get triggered when the event get triggered okay so so we'll give it a name see you then see assignment event is fired will will click and select uh incident reassignment reassignment this is the event which we have created just now okay who will receive the notification so and what it will convey okay so we will receive the notification what we will be doing groups and field as it's on the incident table right let's click on caller okay let's send the notification to the caller itself okay color and what it will contain so let's give a subject as playing with your incident okay and like people are really playing with you with PR incident please escalate I think this is this is this helps the purpose right time so done now we will go to the business rule now let's create a business rule so I will go to the history I will just open that incident which you have created and configure configure business role and we'll create a new business rule okay and this will be clean and we assignment okay advance I will click one okay so it should be after after because we don't want to perform anything on top of this table okay it's outside activity so I will make it after uh and after update because on insertion the assignment count will be zero right and we'll give a condition like the assignment count is greater than 2. so the third time the notification will get and here what we have to do in advance we have to still simply G is Dot foreign queue and here we'll be passing the attribute the first attribute is the name of the event okay the second will be the Glide record so we will pass it as current the third and fourth uh optional okay so you can pass if you want to trigger certain notification to pattern one and Pam 2 you can pass it out I will show you how you can config it on notification but I will keep it as empty for now and that's it for this particular now I will show if you feel if you are feeling something over there okay in pan one and Pam 2 then if I go back to the notification if I go back to the notification not this one well done and I will go with the created by should have created by oh yeah no let's bring it on created by created as I created and we don't want to find notification we need 2023 notification this is the notification so if I open this notification out so if you are filling those parameters out Pam 1 and param two so it you can use this attributes over here who will receive and said who will receive you have event one even Panama even Pam two so if you are passing certain things out over there uh you can check this box and the notification will get triggered to them let's go to the history let's go to incident and now we will change again this is assignment groups so this time let's use the same incident okay it already got assigned once so let's assign it to change camera approval okay that hey we don't want to work let's assign it to cap approval let's see the reassignment count now so if I do show XML and if I do reassignment count two okay so this is not where the notification will go if I do one more time I made it about two on the right let's check leave so it was right about 2 right greater than 2. so let's go back to the incident and we'll assign one more time so I will change this out I will move it to change manage management now and if I save now that your assignment count is greater than 2 and that business should work okay so if I go let check the assignment count is three now we will go to the image all humans okay let's check in the email logs only and if I go with the created wire and you can see the incident got triggered playing with your incident okay today I will do that because he was the caller for this incident so this is how you can create a notification okay which will help you to track the playing activities okay so this is all for today's tutorial in today's tutorial we have seen a use case on incident the assignment how we can work on the same we have seen how how we can trigger an event from business rule and that will lead to the trigger of notification so this is all for today's tutorial hope you like it all please subscribe to my channel if you want to see future videos also get the notification of future videos till then stay safe stay happy and have a nice day thank you
https://www.youtube.com/watch?v=c2BZqCEWgtM