Solved

time triggered flows

atompacks
New Member
7 0 0

Hello everyone ,

I'm loving the new shopify time triggered flows - they have potential to be really helpful for our business but I'm having a little trouble and any advice would be greatly appreciated.

 

I want to run a flow, once a week, that tags every order currently tagged with 'Prepping' and to tag the order with 'Cutting'

 

Ideally the flow would also wait a minute and then remove the 'Prepping' tag. Though I would be happy to run this a separate flow if needed.

 

I've included a screenshot of my flow so far. It seems to be tagging every order from the get date action rather than just the ones tagged with Prepping.

 

 

Thanks in advance for your help!

 

Dexter
Atom Packs

Accepted Solution (1)
paul_n
Shopify Staff
790 118 190

This is an accepted solution.

I'd need to see your query. I think you should filter by tag in the query. Something like 

tag:Prepping

 Then you don't need to check anything in the condition and instead you can just tag them in that loop

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

paul_n
Shopify Staff
790 118 190

Your image did not get posted, so I'm not sure how to help. I think you might need 2 separate loops separated by a wait step. Or you could have a second workflow that runs X min after the first and looks for orders that have both tags. 

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.
atompacks
New Member
7 0 0

Thanks for your help Paul, I have attempted to add the image again in a comment!

paul_n
Shopify Staff
790 118 190

Currently, you cannot put a wait step or second action in a loop. 

 

But you could add a wait step in the "Then" path of that for each loop, and that would run after the loop is done. You would then need to add a second loop for the removal of the tag.

 

As I said earlier, the other option is that you build a second workflow (that runs X min after first) that is very similar but gets orders with both tags and removes one of them.

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.
atompacks
New Member
7 0 0

Hi Paul, 

 

Thanks for your help with this, it's really appreciated! Okay let's ignore the second function for the moment (I'll tackle that separately)

To be honest I'm still struggling to get my head around the get order date and loop functions as I'm used to creating simple action defined flows which don't require this. Perhaps I'm over complicating things.

This is what I am trying to achieve


1) Run every Friday Morning
2) Pull through 100 oldest unfulfilled orders. 

3) Tag every order (from oldest 100) currently tagged with X with Y.

 

Our products run through a weekly production schedule, creating this would automate the tagging system and save us a LOT of time!

At the moment my current flow is tagging all 100 oldest orders not the ones tagged with X. Do you have any idea on what is wrong with my current flow or have any advice on how this could be set up?

Thanks again! 

 

Dexter

paul_n
Shopify Staff
790 118 190

This is an accepted solution.

I'd need to see your query. I think you should filter by tag in the query. Something like 

tag:Prepping

 Then you don't need to check anything in the condition and instead you can just tag them in that loop

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.
atompacks
New Member
7 0 0

Amazing! This worked for me! Thanks again for all your help Paul!

atompacks
New Member
7 0 0

Amazing! This worked for me! Thanks again for all your help Paul!

atompacks
New Member
7 0 0

Okay 

I will try again with the shot of the flow. My main issue is this is applying/running to everything in the getorderdata and not filtering by my check if tag is equal to Prepping function. 

 

flow.jpg