flow action to check hour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 12:25 PM - edited 12-22-2023 12:28 PM
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 12:39 PM
@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.
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 01:15 PM
Thank you for the suggestions. I'll give them a try and will let you know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 12:53 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 01:34 PM
@Bcrant Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.