How to iterate all skus in a shopify order for a match?

Not open for further replies.


I need to kick off some actions when a customer orders a specific sku on my shopify store.

I'm use a filter to decide if the workflow should continue, after receiving the shopify order data.

Currently, I'm filtering based on the line item SKU, if it matches my value.

But the data coming from shopify includes a separate label for each sku in the order.
For example:
Line Items 0 Sku: ____
Line Items 1 Sku: ____
Line Items 2 Sku: ____
Line Items 3 Sku: ____

Which means I have to create a filter for:
IF line 0 sku matches
If line 1 sku matches
If line 2 sku matches
If line 3 sku matches

So it's possible a customer orders 30 different skus (or more), which means I have to have 30 different IF/OR statements in the filter. And then if a customer orders 31 skus, and the 31st sku happens to be the one my filter is searching for, it will be missed.

Is there a way to search ALL sku line items from a shopify order?


Well-known member
Staff member
Hey @belsar

Instead, you can capture Shopify's webhook response in advance format (by toggling the simple response) and whereas you can use the SKU field to filter the specific order name by using the "Contains" filter type.

Please check out the following screenshot for the preferred logic -

Not open for further replies.