please explain this: --> gs.eventQueue('contact.inserted',current,current.u_email_address);

Mohd Shahnawaz
Tera Contributor

please explain gs.eventQueue

1 ACCEPTED SOLUTION

padmesh
Tera Expert

hi Mohd Shahnawaz,

Server-side script using the gs.eventQueue() method.

Please find below link may be it will helpful to  you.

https://developer.servicenow.com/app.do#!/lp/servicenow_administrator/app_store_learnv2_automatingap...

View solution in original post

5 REPLIES 5

Ganesh Pardhe
Kilo Guru

Dear developer,

gs.eventQueue('contact.inserted',current,current.u_email_address);

In above method,

event queue is special record which triggered by system logs so we want system level information hence we used glide system object (gs)

parameter are defined in event queue are:-

1)'contact.inserted'  :-It is event registry which register in registry under the application, and it is state contact inserted event as per the event registry name .

2)current  :- It is glide record object that we have access of (current and previous) in event queue method

3)current.U_email_address  :- It is  first param of event queue method which is shows the email address of current record used in method.

 

Please find the attachment of event handling for your reference.

 

Please like or marked as helpful if it is helping you any way of your understand.  

 

Thanks and regards,

Ganesh.