Get Data Order - How to loop through more than 100 orders

mVanguard
Visitor
3 0 1

Good day everyone!

I am trying to write a query for GetOrderData that would allow me to go through all my orders since January 1st, I am using a  schedule trigger.

I have (way) more than 100 orders, and so far I can't figure out how to write my query so every time my script runs, it goes to the next 100 orders. If you have some suggestions, please send it my way 🙂

Thanks!

 

Replies 2 (2)

paul_n
Shopify Staff
1072 137 254

I think you need to post what you are using for your query. 

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.
Sanket_Patel
Shopify Partner
19 0 2

Hi,

I have same question, In Shopify Flow, how can we iterate more than 100 items, For loop has limitation of 100. 
 
I like Shopify Flow to schedule run every day for syncing compare_at_price to metafield for all products/variants. 
How can we loop in this case ? I have set flow but it updates only 100.





Freelancer | Software Developer | Shopify Customization Guru | Shopify Public App Creator | sanket972528@gmail.com | https://sannket.com