Forum Discussion
Schedule action based canvas on weekdays only
- 11 months ago
So you can in fact use the liquid and abort message, and then put a decision step of receiving message from previous step, then subsequent step of "Delay 2 days" then duplicate the message step. Let me know if you need some help as I've got that liquid code somewhere.
So you can in fact use the liquid and abort message, and then put a decision step of receiving message from previous step, then subsequent step of "Delay 2 days" then duplicate the message step. Let me know if you need some help as I've got that liquid code somewhere.
Hey I was also thinking along the same lines of using a blank web-hook message to determine weekday/weekend and abort message, followed up by a step to check if message was received from previous step. Yes please, if you do have the liquid code to determine weekend/weekday and abort message that would be really helpful.
Thank you!
- BenLerner-Paio11 months agoSpecialist
Hey Yusuf! Sorry I just saw this now. Here is a sample of something that could work:
{% assign allowed_days = "Monday, Tuesday, Wednesday, Thursday, Friday"} {% assign current_day = "now" | date: "%d" %} {% if allowed_days contains current_day %} We're clear to send the message - add here! {% else %} {% abort_message("Sorry, its a weekend!") %} {% endif %}
- Yusuf11 months agoActive Member II
Thanks, I managed to get this to work 🙂
Related Content
- 2 years ago
- 2 years ago