• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

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

Status
Not open for further replies.

belsasar

Member
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?
 
P

Pabblymember11

Guest
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 -

2022-04-13_13h12_23.png
 
Status
Not open for further replies.
Top