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

Solved

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

MatteoP1
Excursionist
19 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
1339 151 310

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 6 (6)

paul_n
Shopify Staff
1339 151 310

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
19 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
1339 151 310

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
19 0 6

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

Kalen_Jordan
Shopify Partner
758 34 135

What are the flow triggers for the two flows? Might be possible to do something creative to get the first one to trigger the second one.

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)