Skip to main content

Hello,

For a bit of context I am beginner and I am trying to automate ordering process in external app using zapier to generate json with all the order data and send it out using webhooks. I have figured out the basics I think. To make sure my integration is working properly I set up product variant metafields in Shopify (products are configurable, not always in the same way and we need a consistent way of saving product data for order processing).

I’ve got a problem with shopify metafields. I cannot seem to find a way to search for than one. I’m using find metafields and I think the first issue is that the data is intepreted as a string despite using formatter utility to transform text into line-items. I am attaching screenshots to with my current setup.

In the end I’d like to be able to create one json containing all the order data and correct product variant metafields assigned to proper products.

 

You can try adding a looping step to loop through each variant of a product. This way you can get the metadata one by one.


I actually have tried that as ChatGPT suggested it as well. The problem remains. As seen on 1_1 and 2_1 when I try to loop from line items the output is doubled.

I also tried to loop from text with delimiter “,” and while output looks good (1_2.png) the input on find metafields works as a string on Preview Loop Values ID (2_2.png).

Do I fundamentally misunderstand something here? Because it very well may be the case.

EDIT:

I see that attachments gets renamed. If something is unclear I can explain what is where.


The attachments you shared are not loading for some unknown reason.

I think you had not configured the looping properly. During testing it only works for the first loop iteration but once a zap is published it loops through all the items in your case product variant.


Oh, maybe because I edited the post. I am trying again.

I am not on free plan right now and I did not plan on going on the pro plan until I know it will work.
So there is no way for me to test if it actually work properly?