To automate state change from Scheduled to Implement

Arun33
Tera Expert

Hi,

 

I want a change request to move automatically from Scheduled to Implement state, at the planned start date/time.

 

I have created a Flow to change from Scheduled to Implement state, at the planned start date/time. but in flow

Wait For Condition if not working:

Arun33_0-1665770355770.png

 

Arun33_2-1665770422994.png

Arun33_4-1665770444040.png

In Wait For Condition I have used script in condition.

 

var start_date = fd_data.trigger.current.start_date;
var on_hold = fd_data.trigger.current.on_hold;
if (start_date == gs.nowDateTime() && on_hold == 'false') {
return true;
}
But this if condition is not working as expected. This if condition should be executed when planned start date/time is equal to system date/time 
 
can anyone help me on this

 

 

 

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

Try using the wait for duration of time Flow Logic

 

Mike_R_0-1665771386608.png

 

View solution in original post

14 REPLIES 14

SanjivMeher
Kilo Patron
Kilo Patron

I dont think wait for condition will work unless an action is performed on the record. I would suggest creating a scheduled job, which runs every hour and check if records start date is less than current date and state is Scheduled, move to implement.


Please mark this response as correct or helpful if it assisted you with your question.

No action is performed on the record I just need if planned start date/time is equal to system date/time 

this should work

As I understand, the wait for condition only work when an action is performed on the record. So I dont think it will work. Which is why I was suggesting a scheduled job.


Please mark this response as correct or helpful if it assisted you with your question.

Mike_R
Kilo Patron
Kilo Patron

Try using the wait for duration of time Flow Logic

 

Mike_R_0-1665771386608.png