How to automate tasks after a customer's order is updated on Shopify Flow?

maxrfinch
Shopify Partner
34 1 46

Just discovered there's no trigger for an updated order on Shopify Flow. I'm looking to use this to automate tasks after a customer's order is updated.

Replies 14 (14)

bryanro
Excursionist
24 0 31

Trigger needed are:

Updated order

Updated Draft order

Updated Customer

Updated Product

Koennn
Excursionist
21 0 22

+1 For the Updated Order and Updated Draft Order triggers. Its weird that Zapier can do this, but Flow cant. Hope this will come soon!

paul_n
Shopify Staff
1005 133 240

What is your use case?

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Koennn
Excursionist
21 0 22
We deliver big pieces of furniture, and the time a delivery takes varies
greatly. For planning purposes, we have a metafield that calculates
delivery time based on order weight and distance.

We work a lot with Draft orders for people visiting our showroom. This
metafield needs to be updated every time the Draft Order is updated,
especially immediately after the edit. Otherwise our showroom employee
might promise an unrealistic delivery time to our customer.
paul_n
Shopify Staff
1005 133 240

How fast after edit? We recently improved scheduled workflows to work every 10 min, so if that is fast enough (probably not?) you could do:

 

Every 10 min

Get updated draft orders

For each draft order

   update delivery time metafield

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

jonmossman
Visitor
2 0 0

Has this trigger been added to Shopify Flow yet?

bryanro
Excursionist
24 0 31

No. I have to use an App for these automations. Arigato Automation works well.

paul_n
Shopify Staff
1005 133 240

You can use the scheduled time trigger + a "Get data" action to make your own update event. 

 

Something like:

  • Scheduled time trigger: Every hour
  • Get order data (with a query matches which orders you care about)
  • For each (order)
    • Whatever action you want to take
Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
bryanro
Excursionist
24 0 31

I read another thread about this workaround. How would that work in a scenario where I want to trigger an automation for ANY customer that is modified, specifically, any of the following information is changed:

tags

tax-exempt status

email address

custom fields

 

I don't want to risk missing a trigger because my query isn't correct, so it's easier to trigger based on ANY update to the customer (or order for that matter).

bryanro
Excursionist
24 0 31

I can't seem to find the other thread on this topic. Was it removed?

paul_n
Shopify Staff
1005 133 240

idk, I haven't seen another thread

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
paul_n
Shopify Staff
1005 133 240

Anything that causes an update event should be caught if you use "updated_at" in your query. You won't know what changed, though, unless you store the prior value somewhere. 

 

If you want "tags changed", you can use "Customer tags added" or "customer tags removed".

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
bryanro
Excursionist
24 0 31

Does that mean I could query for all customers (or orders) that have been updated and run them through the automation individually?

 

This is what I need, because I will use Conditions to validate the changes that I am looking for before I start the trigger. 

 

Or do I have to query against a specific field?

paul_n
Shopify Staff
1005 133 240

You need to query with updated_at at the very least. It's generally better use the query filters to get the smallest number of results as possible as there is a limit of 100 at a time. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.