How to wait a Shopify Flow until "tomorrow morning"

I’m wondering how to wait a flow until “tomorrow”, “later today”… in a created order trigger.

Maybe it could be done with “created at”, but this is date and time and I would like to wait flow action when order is created between 0AM and 8AM, wait until 10AM.. for example… to next flow action.

You can’t dynamically set the wait step duration yet.

Hi was this further developed to have a solution like wait till the next 9am?

Hello, Paul!

Is the team looking at possibly allowing this?

We will eventually, but it’s not imminent

If you don’t mind using third-party-apps you can achieve this with the Flow Companion app in a two-workflow pattern.

Workflow A

Use the Get current datetime action from Flow Companion, then pass it into a Run Code action that calculates tomorrow at 08:00 UTC:

export default function main(input) {
  const now = new Date(input.getCurrentDatetime.currentDatetime);
  const targetDate = new Date(
    Date.UTC(
      now.getUTCFullYear(),
      now.getUTCMonth(),
      now.getUTCDate() + 1,
      8, 0, 0, 0,
    ),
  );
  return { targetDate };
}

Then add a Start custom order workflow action (also from Flow Companion). Set a trigger specifier of your choice (e.g. do automation) and put {{runCode.targetDate}} into the Start time or delay field.


Workflow B (trigger: Custom workflow started)

This is a separate workflow that fires when the scheduled time arrives. Add a condition to check that the specifier matches the one you set in the previous workflow, then proceed with your actual logic.

Workflow B will execute at exactly 08:00 UTC the next day. Adjust the hour in the Run Code step to target any time you need.

I believe there’s a way to natively do this in Shopify flow. The trick is doing it via a two-step workflow. Here’s how it could work:

Workflow 1: Tag the orders at 10AM

  • Trigger: Scheduled time - daily at 10:00 AM
  • Action: Fetch orders where created_at is between midnight and 8AM AND tag is not morning-processed
  • Action: For each order → add tag morning-processed

Workflow 2: Act on the tag

  • Trigger: Order tagged
  • Condition: Tag equals morning-processed
  • Action: Whatever you want to happen (send email, notify team, fulfill, etc.)

Why this works

Workflow 1 runs at 10AM and tags the qualifying orders. The moment a tag is applied, it instantly fires Workflow 2’s trigger, so your action happens at 10AM for any order that came in between midnight and 8AM. The tag also acts as a guard so orders are never processed twice.

To set this up: I would recommend copying and pasting this into the Shopify Flow AI assistant and it can help build it for you. I would share the Shopify “.flow” file but not sure how to do that in the forum here.