Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Scoped application BR timer

sukran
Mega Sage

How to stop 2 mins for after BR in scoped application?

1 ACCEPTED SOLUTION

Amitoj Wadhera
Kilo Sage

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

View solution in original post

4 REPLIES 4

OlaN
Giga Sage
Giga Sage

Hi,

Could you please elaborate a bit on your question ?

Amitoj Wadhera
Kilo Sage

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

SK Chand Basha
Tera Sage
Tera Sage

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.