Triggering an event

Ballela Siva Te
Tera Contributor

Hi Team,

 

How can I trigger an event with out passing the parameters.

 

I have included an event in my script - gs.eventQueue('review_date.notification'); is this a right declaration

 

Regards,

Siva Teja B

3 REPLIES 3

Sumanth16
Kilo Patron

Hi @Ballela Siva Te ,

 

The second parameter is required. You can use current, any GlideRecord record, and I believe I've used null on occasion.

 

gs.eventQueue("saml.test_connection", null, "request");

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Robbie
Kilo Patron
Kilo Patron

Hi @Ballela Siva Te,

 

You’re almost there. You also need to declare the GlideRecord object you wish to trigger the event on.

Commonly this will be the current object.

 

Here’s the syntax you need:

gs.eventQueue("review_date.notification", current)

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

swathisarang98
Giga Sage
Giga Sage

Hi @Ballela Siva Te ,

 

You can trigger an event with the below syntax,

gs.eventQueue('event_name', object ,' ' ,' ' );

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang