Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.
SOLVED

How to ONLY send communications during business hours

Avatar

Level 1

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@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

Avatar

Level 1

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.