How to identify from where an event is triggered ?

shanker1
Giga Guru

Hi,

Could any one please help me how to identify the list of places where an event is triggered?

Issue: I've an existing notification which is triggered by an event. I'm not able to identify the place where this event is triggered. I've searched in Workflow, Business rules, Script Includes, Scheduled Jobs. 

Regds,

Shanker

 

8 REPLIES 8

Rishabh Jha
Mega Guru

Hi,

An event can be triggered from potentially any script, by using "gs.eventQueue('eventname', glide_record);".

So, if you're interested in a particular event trigger instance, you can navigate to System Policy --> Events --> Event Log, and then look for your event in the list by filtering on the name. Then you can view the details of the event that was triggered there, with the instance field containing the sys_id of the record that triggered it.

Otherwise, you can also do a code search for gs.eventQueue('youreventname, in the studio if you're on a scoped application (shortcut ctrl+shift+F), or in the global search, if the scope of the event and actions are global. It should scan all the artifacts, and show you all the business rules, UI actions, client scripts etc., where your event is getting triggered through gs.eventQueue.

 

find_real_file.png

 

Thanks & Regards,

Rishabh Jha

Pooja Mallikarj
Kilo Sage

Hi,

You can check in the Event logs as well it will display the event created on today.

In the event registry list view you can add updated field and check for latest updated events.

Thanks,

Pooja M

DirkRedeker
Mega Sage

Hi

Did you check for Flow (Designer) Flows?

BR

Dirk

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shanker,

I believe most of the components are already told to you for checking; few more to check

-workflow schedule

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader