- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2024 05:01 AM
Hi @sukran ,
Please find below script for your use case:
var startTime = new Date().getTime();
var delay = 120000; // Simulating a delay of 2 minutes
while (new Date().getTime() < startTime + delay) {
// Simulating the delay
}
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 10:50 AM
Hi,
Could you please elaborate a bit on your question ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 10:19 PM
@sukran Please refer to these two articles https://www.servicenow.com/community/developer-forum/gs-sleep-in-business-rule/m-p/1627305 and https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0962370 I hope they address your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2024 05:01 AM
Hi @sukran ,
Please find below script for your use case:
var startTime = new Date().getTime();
var delay = 120000; // Simulating a delay of 2 minutes
while (new Date().getTime() < startTime + delay) {
// Simulating the delay
}
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2024 05:05 AM
Hi @sukran
Can you refer this article it might be helpful
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0962370
Mark it helpful and accept solution!! If this helps you to understand.