flow action to check hour

Bcrant
Tera Contributor

Hello, everyone!

 

Looking for some guidance on a what I thought would be a simple flow action. However, every time I test the action, the output is false.

 

Bcrant_0-1703276701215.png

 

The goal: I want to check the time to be sure that it falls within a time range of 15:00-9:00. If yes, output is True ELSE output is False. Then I'll add the action to my flow to fire off an escalation email.

 

 

4 REPLIES 4

Sainath N
Mega Sage
Mega Sage

@Bcrant : Could you check time == 9 or time == '9' in your if condition and give a try and also add a log statement to confirm if its returning 9 or not and the input variable defined at the action level is of correct data type or not? I did a quick test and it returned me in String as I declared the variable as a String.

sainathnekkanti_0-1703277509948.png

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Bcrant
Tera Contributor

Thank you for the suggestions. I'll give them a try and will let you know.

Bcrant
Tera Contributor

Not entirely sure why, but copying the action and editing the script didn't play well. After I created the action from scratch, everything worked just fine. Just wanted to close the loop. Thanks again for your suggestion on using gs.log.

@Bcrant Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.