Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I am using an advanced query in a Get customer data action in a workflow to retrieve customer records. At the moment, my query is matching more than 100 records, so only the first 100 are returned.
I would like to add something to my query to filter customers based on whether they have currently any unfulfilled orders. (See image below.) Is this possible?
Solved! Go to the solution
This is an accepted solution.
Docs for filters on this query: https://shopify.dev/docs/api/admin-graphql/2024-04/queries/customers#argument-query-filter-default. TL;DR - you can't filter customers on that. I think segmentation also doesn't allow checking order / unfulfilled status.
You could instead set a tag of customers after they place an order and clear it when the order is fulfilled (unless they have other orders that are unfulfilled). I think that would require 2 workflows to make work.
This is an accepted solution.
Docs for filters on this query: https://shopify.dev/docs/api/admin-graphql/2024-04/queries/customers#argument-query-filter-default. TL;DR - you can't filter customers on that. I think segmentation also doesn't allow checking order / unfulfilled status.
You could instead set a tag of customers after they place an order and clear it when the order is fulfilled (unless they have other orders that are unfulfilled). I think that would require 2 workflows to make work.
Thanks Paul. I had read the docs: I was just surprised that there are so few filters available for customers. As you say, segmentation doesn't help because it seems that the same set of filters are available there as there are in workflows (i.e., the Flow app); so if I can't craft a custom query to do something, I generally can't create a segment to do it either.
Your idea of separate workflows makes sense, however, so I might try that. Thanks again.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025