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: ____
...etc...
Which means I have to create a filter for:
IF line 0 sku matches
OR
If line 1 sku matches
OR
If line 2 sku matches
OR
If line 3 sku matches
...etc...
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?
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: ____
...etc...
Which means I have to create a filter for:
IF line 0 sku matches
OR
If line 1 sku matches
OR
If line 2 sku matches
OR
If line 3 sku matches
...etc...
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?