Return Duration value in Script for Wait for Condition activity flow

SM_Toronto
Tera Guru

Hello SN Community,

How do you return Duration value in Script for Wait for Condition activity flow?

I tried this script...

2023_08_17_13_41_15_Flow_Designer_Flow_Designer_SAIT_Approval_Reminder.png

 ...but it does not recognize it by not proceeding.

Any tips or leads is much appreciated.

Thanks in advance,

Dor

1 ACCEPTED SOLUTION

SM_Toronto
Tera Guru

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;

 

View solution in original post

5 REPLIES 5

thomaskennedy
Tera Guru

You're asking about the timeout duration, yes? I feel sure it wants a number in seconds, for example 86400.

SM_Toronto
Tera Guru

Hi,

I tried it but no dice...it did not timeout and move to the next step. 

2023_08_18_10_43_04_Window.png

Perhaps a Duration type format should be used but how? (????)

Thanks,

Dor

SM_Toronto
Tera Guru

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;

 

Community Alums
Not applicable

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;