Solved

Can I set execution order for Flow A and Flow B?

MatteoP1
Excursionist
18 0 6

Hi,
I have two flows called Flow A and Flow B with trigger "When a new product is created".
Is it possible to set the order in which they are executed?

 

I always want Flow A to be executed first, then Flow B.

Accepted Solution (1)
paul_n
Shopify Staff
1009 133 240

This is an accepted solution.

You can have more than 1 but they run in parallel. You might be able to get around that by using a wait step, but it's not guaranteed that will work 100% of the time to control the order (for example, one workflow could get an error response and then need to retry). 

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.

View solution in original post

Replies 5 (5)

paul_n
Shopify Staff
1009 133 240

Yes, merge them into 1 workflow. Controlling the order of execution is what a workflow is designed to do

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.
MatteoP1
Excursionist
18 0 6

Hi Paul, thanks for your reply. The flow A is already very long and complex, I was hoping to be able to create more than one flow to handle them without confusion.

I understand that this is not possible, do I have to have one flow for each type of trigger?

paul_n
Shopify Staff
1009 133 240

This is an accepted solution.

You can have more than 1 but they run in parallel. You might be able to get around that by using a wait step, but it's not guaranteed that will work 100% of the time to control the order (for example, one workflow could get an error response and then need to retry). 

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.
MatteoP1
Excursionist
18 0 6

Thanks Paul, I'll try to run Flow B after 30 minutes.

Alejo_slmnc
Shopify Partner
17 0 1

I now a way you can set the order. You coud change the trigger for one of them.

example: 

Flow could start when product is created, and then it runs all you need, but at the end, you can add a product tag, let's say "xyz".

 

Flow B's trigger will be "product tags added" and will check if the added tag is "xyz" then it runs all the stuff and, at the end, remove the tag (if you want)