Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to deal with Broken Plus Flow

Solved

How to deal with Broken Plus Flow

HunkyBill
Shopify Partner
4853 60 568

A merchant is using Flow with Plus.

The apply a tag during Flow to an Order. Simple. Thing is Shopify fires off the order as a webhook BEFORE the tag is applied by Flow. So this breaks the processing that depends on the tag from Flow, as the webhook payload is now incomplete.

Since webhooks only fire on order created or order paid, it does not seem like that offers any relief or option. So what do people do with this, when Flow is altering orders at the wrong time?

 

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
Accepted Solution (1)

BenMurphySmith
Shopify Partner
7 2 19

This is an accepted solution.

This is simply how Flow works. Shopify Flow will execute against new orders soon after they are created, subscribed webhooks will probably be sent out before this happens with Shopify Flow. You just have to understand that and work with it. It is certainly not something that the Shopify Flow docs make clear for Shopify store admins.

I work on a store that uses Shopify Flow for the same thing: to tag orders as are created.

To work with this we have written a separate process to poll our new orders on Shopify with a lookback window: we give our orders 20 minutes to resolve, and them send them off to our warehouse for processing. Doing so gives Flow time to do it's job of tagging an order soon after it is placed.

I, like you, wish Flow could execute before webhooks fire, but it won't ever do that, so here we are. 🙂

View solution in original post

Replies 2 (2)

BenMurphySmith
Shopify Partner
7 2 19

This is an accepted solution.

This is simply how Flow works. Shopify Flow will execute against new orders soon after they are created, subscribed webhooks will probably be sent out before this happens with Shopify Flow. You just have to understand that and work with it. It is certainly not something that the Shopify Flow docs make clear for Shopify store admins.

I work on a store that uses Shopify Flow for the same thing: to tag orders as are created.

To work with this we have written a separate process to poll our new orders on Shopify with a lookback window: we give our orders 20 minutes to resolve, and them send them off to our warehouse for processing. Doing so gives Flow time to do it's job of tagging an order soon after it is placed.

I, like you, wish Flow could execute before webhooks fire, but it won't ever do that, so here we are. 🙂

HunkyBill
Shopify Partner
4853 60 568

Thanks for that. It's always a pleasure to inform the people actually making a living off of Shopify about how it really works. The webhook processes at least a few thousand orders per day, every day, and now that this is a thing, it is just one more thing they have to deal with. So funny.

I knew it was this because the webhook order had no tags, but when they resent the order a few minutes later, via my manual resend, it was perfect. Bingo. Flow is not tagging in time.

Remember you'd get webhook orders and the Customer would still not be attached, because it was still being processed in a different module? Those were fun days too. I love living la via loca.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com