• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

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