Skip to main content
Question

How to get Shopify metafields to Zapier

  • December 9, 2024
  • 4 replies
  • 191 views

Hi!

So my problem is basically that i need to give personalized link to customer with custom variable for my shopify product. For example if a=123 “www.shopifymyshop.com/myproduct?a=123” and customer purchases that product through link and then i could read variable “a” with Zapier. 

I have set up metafield for my product in shopify but i can’t see that metafield/metafield namespace/key in zapier after i make purchase and zapier shopify app gets triggered. Also zapier shopify app has option Find metafield data but no luck with that either. Couldn’t find any examples how to use that.

Any ideas how to get this done?

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6403 replies
  • December 10, 2024

Hi there ​@Jepsjeps,

Welcome to the Community! 🎉

Before we dig deeper into this, would you mind sharing a detailed screenshot of how your Zap is configured? Also, please share a screenshot of the action step that shows all of its fields in the “CONFIGURE” section.

Please don't include personal information in the screenshot, or be sure blur out any personal information.

Thanks!


  • Author
  • Beginner
  • 2 replies
  • December 10, 2024

Hi ​@ken.a  ! Thank you for helping.

When i go through that list of possible variables and information(last picture) about order what caused a trigger. I don’t find my metadatafield variable. Should it be there if it’s configured in shopify correctly? 


  • Author
  • Beginner
  • 2 replies
  • December 11, 2024

Okay. I managed to find metafield data with shopify app. Now i just need to figure out how to dynamically change metafield value.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7517 replies
  • December 12, 2024

That’s good news, ​@Jepsjeps! Glad to hear you were able to locate the missing metadata fields in the end—nice work! 🙌

Hope you don’t mind me jumping in for Ken here. To have the values dynamically update you’d need to map fields from a previous trigger or action so that whatever values those fields contain when the Zap runs, is what will be used. So for your example of http://www.shopifymyshop.com/myproduct?a=123 you’d replace the 123 part with the relevant Shopify field that contains the value you need to pass for it. 

One thing you might want to watch out for is line items, if there multiple products being ordered for example then you might need to use a Formatter action to convert the line items into a comma separated list instead if they all need to be included in the same link. See Convert line items into text strings for more details. Though, if you’re looking to generate separate links for each product then I’d suggest using Paths, Looping and Digest to store the different links in a digest and then release them all together in an email (or whatever other type of action you’re using to send the link to the customer). We have a guide that explains that sort of approach in more detail here:

Hope that helps. If you run into any issues on that or have any further questions at all just let us know! 🙂