App reviews, troubleshooting, and recommendations
If customer.lastOrder doesn't return the last order, and a get order data query includes the order that triggered the flow, how do I get the customer's previous order?
I have tried getting the last 2 orders from a get order data query, but I don't know how to skip the first entry, and I have tried editing the query to change "now" to something like "1 hour" but it doesn't work. Here is the query:
customer_id:{{order.customer.legacyResourceId}} AND created_at:>='{{ "now" | date_minus:"1 day" }}'
If I can get the query to return results that skip the last few minutes up to X days, it should work.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025