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.

Flow designer wait for condition is not working

SHALIKAS
Tera Guru

I have the below script for wait for condition action 


 var dec_date =fd_data._2__get_catalog_variables.decommission_date;
var nowTime = new GlideDate();
if(dec_date<=nowTime)
{
    answer = true;
}
else answer =false;
While logging nowTime and dec_date the format for both is coming as yyyy-mm-dd. 
But the flow is not waiting
8 REPLIES 8

Mark Manders
Mega Patron

Why not create a flow variable to get the decommission date and have the flow just wait for the time in that flow variable?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

I did not get you, create flow variable meaning?

On your flow you can create variables that you can set all through your flow, whenever you need it and even update them. If you put your decommission date into that variable and have the flow wait for the time of that variable, you should be able to get what you are looking for.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

I already have get catalog variables action which is taking all the variables of the catalog item