logo

NJP

How to fire an event via Flow Designer? | ServiceNow

Import · Sep 17, 2021 · video

hi everyone in this video i'm going to show you how we can file an event using floor designer so to fire an event first i need to register that event i will navigate to the registry module to this to the event which i want to file and i'm going to click on registry new so here i can give any name for my event the way i decide for the event name is the use of the whatever the use case is for that for which i'm going to use my event so let's assume a scenario i want to fire an event whenever on incident table the priority changes to critical so in that case i would give something like this and i can select the table name here as well and this is an optional field if i want i can leave it as empty submit so this is the name of my event and now i will navigate to the flow designer and create a new flow this be the flow name application global system user submit i'm going to add a trigger the record is updated i have to select the table name here incident is my table name i will add a filter so priority changes to critical and i want to run it for each unique change so done and then i can add an action over here so to add the action for event we do not have anything out of the box so i am simply going to select the create record option and the table for my record is this event this is where i need to add that record and now i'm going to pass the parameters so first one is name where i'm going to pass the name of my event which is this one second one is i can pass the table name and table name i can simply fetch from here if it works okay i can write it in this way as well and the next parameter is state so this will be in the ready state next parameter is the instance here i'm going to pass the cis id of the incident record so this is my incident record towards right and this is the society and my last favorite would be either palm one or pam two or both let's say here i want to pass email id of exercise person or any other string based on my use case let's see if i want to trigger a notification to the assigned to person that the priority of this ticket has changed then i can pass assign to over here in the program one so here it is going to be like this so we're all done now my event will be fired as and when the condition matches and let's see how it is going to work once i publish this flow activate meanwhile i'm going to open an incident form yeah this is activated even tutorial let's add some one india sign too problem manager and now i'm going to modify impact and urgency so that the priority becomes critical now it is let's save the incident to record okay yes and save it now and i'm going to hop directly to the event queue to see if that event has fired or not okay yes so this is the event and it has already been processed so this is how we can find an event using floor designer thank you for watching and don't forget to subscribe

View original source

https://www.youtube.com/watch?v=StnttbO3uEs