With business rules Is it possible to delay the execution of the script by about 30 seconds?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2020 06:35 PM
With business rules Is it possible to delay the execution of the script by about 30 seconds?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2020 10:42 PM
Hi,
if you don't wish to send any parameter this should be the syntax
I assume name of your event is -> scheduled_delay
var dateTime = new GlideDateTime();
dateTime.addSeconds(30);
gs.eventQueueScheduled("scheduled_delay", current, "", "", dateTime);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2020 11:04 PM
Thank you.
Where can I check if this syntax is successful?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2020 11:18 PM
Hi,
refer the links shared above in my earlier comment and also below for syntax and the ServiceNow docs
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2020 11:32 PM
Where is it successful?
log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2020 11:41 PM