Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Specify weekday AND time within a time constraint

Avatar

Avatar
Validate 1
Level 2
KelFromLondon
Level 2

Likes

3 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
KelFromLondon
Level 2

Likes

3 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
KelFromLondon
Level 2

23-04-2019

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.

1738475_pastedImage_1.png

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

Has anybody ever tried to do this?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
DavidKangni
MVP

Likes

248 likes

Total Posts

359 posts

Correct Reply

143 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Validate 1
MVP
DavidKangni
MVP

Likes

248 likes

Total Posts

359 posts

Correct Reply

143 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
DavidKangni
MVP

23-04-2019

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)

1738604_pastedImage_0.png

1738605_pastedImage_1.png

1738606_pastedImage_2.png

Thanks

David

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
KelFromLondon
Level 2

Likes

3 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
KelFromLondon
Level 2

Likes

3 likes

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
KelFromLondon
Level 2

24-04-2019

Thanks David,

This should do the trick.