Find Flows and Subflows that send a notification in Servicenow
this video we'll look at how to find the flows and subflows that are triggering a notification in service now so I'm in a notification record and I have this custom UI action here which is show flows that trigger this notive and so I have a couple of flows uh one flow and one subflow that I are that I'm have a send notification action and it is sending this notification so if I click on this uh it goes runs the script in the background and then pumps this out into the into a info message here so test subflow and test flow I can click on either one of those and brings me to the flow here and you can see this send notification action is here and the notification is test notification um so I will paste a link to my uh to an article on my site that has the code let's just go and take a peek at it here edit UI action and basically what it's doing is it's looking at the ssub action instance table uh where the action type is this which is send notification and then it goes through through each of those instances or each of those records and uh the actual CIS ID of the notification is buried in a um I think it's like a Json object or I'm not quite sure where that is but uh it's buried all the way down here and uh so then we just want to find where it has the same value as the notification that we're on and then it just puts it out into a uh uh info message here um if we just take a peek at that table ssub action instance go from here and I have this sorted by created um so we can see the ones at the top and so here's the flows right here's my test subflow here's my test flow and um action type is send notification so if we go into one of these records uh we can see that uh here on the form it displays the notification here test notification and so the way I figured this out is just with the snu tills you know just double clicking to get the name and it's uh action inputs uh etc etc etc do notification so that's what I'm searching on now interestingly if you go into the XML uh and this is sort of the mystery to me the action inputs field is actually blank so I'm not sure how that is linked here um this is some new fangled uh service now stuff with the you know Flo as designer and uh now experien framework like it's not like the old way anymore so there's stuff buried in a Json somewhere I'm not quite sure how that works if you if you know put it in the comments I'd love to know uh probably figure it out one day but uh that's basically how it works so I'm just cycling through these records and uh figuring out which ones use this uh of the notification of the same notification that I'm on so that's how you do it
https://www.youtube.com/watch?v=IJczo4XBfZw