- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2023 12:44 PM
Hello SN Community,
How do you return Duration value in Script for Wait for Condition activity flow?
I tried this script...
...but it does not recognize it by not proceeding.
Any tips or leads is much appreciated.
Thanks in advance,
Dor
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 09:08 AM
I found the solution...it allows and accepts GlideDuration object.
e.g.:
var myBizDays = gs.getProperty("<your property here>"); //2
var myDur = new GlideDuration(myBizDays + " 00:00:00"); //this is for 2 days
return myDur;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2023 01:14 PM
You're asking about the timeout duration, yes? I feel sure it wants a number in seconds, for example 86400.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 07:54 AM
Hi,
I tried it but no dice...it did not timeout and move to the next step.
Perhaps a Duration type format should be used but how? (????)
Thanks,
Dor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 09:08 AM
I found the solution...it allows and accepts GlideDuration object.
e.g.:
var myBizDays = gs.getProperty("<your property here>"); //2
var myDur = new GlideDuration(myBizDays + " 00:00:00"); //this is for 2 days
return myDur;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 11:55 PM
I have used below mentioned script for the duration of "wait for condition" action.
//property value is set in milliseconds. So 120000 for 2 mins.
var durProp = gs.getProperty('property name');
durProp=Number(durProp);
var dur = new GlideDuration(durProp);
return dur;