Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi, our backend accounts/dispatch system imports orders from Shopify for processing and tags the order "Imported" once done, as a safeguard against double-importing orders. This works great normally but occasionally a staff member will need to re-send an order if it is lost/damaged etc.
To do this, they duplicate the original order and 100% discount, but this also brings over the tag from the original order, meaning our order import skips it and never processes the replacement - and this can easily be forgotten.
As this creates a duplicate order, it would seem that the best step is to use Flow to remove the tag "Imported" from any newly created order
Start When...
> Order Created
Do this...
> Remove order tags
Remove the following order tags: Imported
(and as a test, Add the following order tags: Test)
However, once the order is created (marked as paid), the flow runs, it ADDS the "test" tag (confirming the flow has been triggered and run) but doesn't remove the "imported" tag
Anyone know what I'm missing here? I've also tried a flow on draft orders to remove the tag as soon as the duplicate is created as a draft order but with the same effect.
You have two different systems that are running when an order is created. Either the Admin and Flow or the app and Flow. So depending on which one runs first, you'll get different behavior. This is called a race condition.
I suspect if you see "Imported" after Flow ran, that either the order did not have that tag when Flow ran, or that tag was added back after Flow ran (and it is likely in the downstream system).
There isn't enough detail here to really know how to design this better. Ideally, you could initiate the sync with the backend system directly from Flow
Thanks Paul, that makes sense of something that was confusing me at least.
I think our short-term answer is staff training to ensure they manually remove any order tags (or trigger a flow) when creating a duplicate order in the backend.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025