Specify weekday AND time within a time constraint | Community
Skip to main content
KelFromLondon
Level 2
Apr 23, 2019 11:33 AM UTC
Solved

Specify weekday AND time within a time constraint

Does anyone know of a way to edit time constraints so that we can specifiy both a weekday and a time instead of just a time (if current time is between 12-3pm AND today = Sunday) then proceed within the workflow, otherwise wait until these conditions are true.

I've created a condition within the test node that can check the current date and time, but can't find a way to put it into a time constraint.

new Date().getDay() == 0 && new Date().getHours() >= 12 && new Date().getHours() < 15 

Has anybody ever tried to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
DavidKangni
DavidKangniAccepted solution
New Participant
Apr 23, 2019 5:21 PM UTC

try the following

- add your workflow after the true transition

- add a wait activity after the false transition (in my test the wait is one hour)

Thanks

David

David Kangni

2 replies

KelFromLondon
Level 2
Apr 24, 2019 12:29 PM UTC

Thanks David,

This should do the trick.

Translate
DavidKangni
DavidKangniAccepted solution
New Participant
Apr 23, 2019 5:21 PM UTC

try the following

- add your workflow after the true transition

- add a wait activity after the false transition (in my test the wait is one hour)

Thanks

David

Translate
David Kangni