Need clarification on gs.eventQueueScheduled()

Rama Rao
Tera Contributor

Hello,

 

I need to generate eventQueueScheduled() with valid to date in the certificate table. created an event and script action also. But we need to Schedule to job to run at 1:00 am PT if the valid date is today.  can anyone help me with this?

5 REPLIES 5

SANDEEP28
Mega Sage

@Rama Rao You can refer below links to get more understanding on eventQueueScheduled(). 

5th parameter in eventQueueScheduled() is the processing time which specifies when to process the event.

 

eventQueueScheduled(String name, Object instance, String parm1, String parm2, Object expiration)

 

expirationObjectOptional. GlideDateTime object or a date/time type element that specifies the date and time to process the event.

Default: Current date/time

 

https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server/no-namespace/c_GlideSystemScope...

 

https://www.servicenow.com/community/developer-forum/how-to-trigger-notification-using-gs-eventqueue...

 

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

Hello @SANDEEP28 ,

 

Thanks for the response,

Yes, I have used this syntax and it executes the valid to date time. But I have to execute this at 1:00 am PT if the valid date is today

@Rama Rao Can you share your code here

Hello Sandeep,

 

Now it resolved.

 

Thank you