- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2018 11:42 PM
Dear all,
I could not find the steps to trigger an event using ScheduleJob.
Could anyone point me out steps by step
regards
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018 07:27 AM
As per the documentation, the gr is a glide record object. To be honest i'm not 100% sure on its purpose or function in this context.
It's not something you can use and reference in your mail script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018 07:13 AM
any reason what I cannot pass diorectly my gr object as I have done ?
I thought that gr contains the collected records but seems it is null.
Do we have to iterat once to the object gr in order it is not any more null
Thnaks for clarification on this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018 07:27 AM
As per the documentation, the gr is a glide record object. To be honest i'm not 100% sure on its purpose or function in this context.
It's not something you can use and reference in your mail script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2018 11:50 PM
gs.eventQueue function is used to trigger the event from any server-side script.
You can find the related documentation here - https://developer.servicenow.com/app.do#!/api_doc?v=kingston&id=r_ScopedGlideSystemEventQueue_String_Object_String_String_String
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2018 11:56 PM
Thnaks for your reply.
Where should I place the script :
gs.eventQueue("Asset.retired.ccchange");
Where in my schedule job should I place this script which fire my event ?
Sorry new to this part
thanks for help, screen shot might help
regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018 12:29 AM
Do you need to keep sending this email every 5 minutes for each ticket? If yes, till how long?