Trigger an event using job schedule

wakespirit
Kilo Guru

Dear all,

I could not find the steps to trigger an event using ScheduleJob.

Could anyone point me out steps by step

regards

 

1 ACCEPTED SOLUTION

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. 

View solution in original post

18 REPLIES 18

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 

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. 

Kalaiarasan Pus
Giga Sage

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

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 

Do you need to keep sending this email every 5 minutes for each ticket? If yes, till how long?