How to ONLY send communications during business hours | Community
Skip to main content
Level 2
June 24, 2024
Solved

How to ONLY send communications during business hours

  • June 24, 2024
  • 1 reply
  • 698 views

Is there a way to build a simple piece of code that we could leverage within a WAIT condition that will ONLY send people through during Monday to Friday from 9am-5pm?


Currently I use a Time Condition where I select the day and hours I want customers to pass through. But after running some tests I don't think a condition node actually HOLDS customers but rather filters them in/out based on if they currently meet that condition. So now we must create additional wait nodes for every other scenario that could occur and furthermore create custom code to hold and pass them through. (eg. setHours(toDateTimeOnly(nowWithDelta(2, "days")),9)) - See screenshot.

 

Perhaps we can simplify everything (and reduce nodes) by create one code that says ONLY send profiles through from Mon-Fri 9-5 and if its any other time, then hold them until it hits a business hour.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SatheeskannaK

@mikey007 You will have to use the condition + wait activity to achieve this. Have a look at this previous post on a similar ask.

1 reply

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
June 24, 2024

@mikey007 You will have to use the condition + wait activity to achieve this. Have a look at this previous post on a similar ask.

Thanks, Sathees
Mikey007Author
Level 2
July 10, 2024

Just seems a bit ludicrous that the correct way to send communications via business hours looks like this (see screenshot) and there is no simple way to HOLD customers and send them through during specific times.