i have a scenario set up - it searches Adobe Commerce (magento 2) orders (based on our filters) and sends SMS and emails. It is working fine, however, it only sends email and SMS for each order once. I need it to send SMS and email multiple times (for example 1 hour after order is created, 24 hours after and 72 hours after).
I was able to change from “watch orders” to “find orders”, but now, I am not able to use email and SMS functions (as I do not see variables anymore - variables like customer phone, customer email, order id, etc). The scenario on “watch orders” looks fine, there is variables. Why did variables disappear after changing from watch orders to find orders? All variables from watch orders became invalid (black) and can´t be used anymore.
How to schedule these? Let´s say I will fix the first problem, how do I then schedule sending SMS and emails multiple times (after 24 hrs, 72 hrs, xxx hrs)?
You are not able to see variables because your “Find Orders” module is not set to be the trigger. Right now, it is after your router. You must drag and drop the watch icon to make it your scenario’s trigger.
For your second question, there are a few different approaches possible.
The easiest in your described case- sending the next message 24, 72, and so on hours after the first one- is to use cronhooks.io. However, if you have a lot of orders, building a database and scheduling Make’s scenario to check for scheduled actions could be more convenient and cheaper.
About scheduling. I need help with setting time filter. In this case, let´s say I want to create filter for orders created after 24 hours. What should I set in the conditions? I have set time operators: Greater than “24” as on screenshot, but it does not seem to work.
Perfect, it now works great (it is filtering correct orders). But, as the scenario is running every 10 minutes, now, the email would be sent for each order created after 24+ hours every 10 minutes. I have created 2 filters for email and 2 filters for SMS (orders created 24+ hours, 72+ hours), same for SMS.
What I am looking for is that the text and SMS is sent for order created after 24 hours only once (first action) and once for second action (72+hrs). There is second action (duplicated), only change is that filter is 72+ hrs. I am sending screenshot, where you can see how it is set up at the moment.
In that case you might have to look at “Cron” jobs for scheduling a future webhook callback to a scenario’s Custom Webhook trigger.
You can have a scenario watch new items and schedule a cron job callback using apps like 0CodeKit that allows you to schedule a “callback” to a URL defined in a “Custom Webhook” trigger in another scenario at the exact time you want
You don’t have to use a data store, this is just an example. You can use Google Sheets, Google Calendar, etc.
Alternatively, if you are already using Airtable, you can use an Airtable formula and built-in automation, briefly mentioned here.