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.

"Wait for Condition" enable timeout duration script

Sahil Dhadwal
Tera Guru

Hi,

I have added a "wait for condition" action in one of my change flows and I want to timeout this action after planned end date. To achieve this I want to use the script for duration field but I am not sure what what should be the format of the returned value.
find_real_file.png

1 ACCEPTED SOLUTION

palanikumar
Giga Sage
Giga Sage

Try GlideDuration and see whether it resolves your requirement.

var gd = GlideDuration(60000); // Duration in Milliseconds
return gd;

Thank you,
Palani

View solution in original post

1 REPLY 1

palanikumar
Giga Sage
Giga Sage

Try GlideDuration and see whether it resolves your requirement.

var gd = GlideDuration(60000); // Duration in Milliseconds
return gd;

Thank you,
Palani