Triggering an event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2024 12:19 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2024 12:29 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2024 12:34 PM - edited 03-17-2024 03:26 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2024 12:45 PM
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