How can I automate copying data of a metafield to another regular field of products?

How can I automate copying data of a metafield to another regular field of products?

yoonlaser
Shopify Partner
32 0 5

Hi,


I'm migrating my site from WordPress to Shopify.
I have a metafield called 'woo._wpmr_upc' defined and would like to copy the value to the 'barcode' field of the product. 
I would like to make it automated using the "Flow" app, so when I migrate product data from WordPress to Shopify, I want the metafield data to be copied to the 'barcode' field.
How should I make the workflow structured to achieve that if it can be done with the "Flow" app?
These are the steps that I added so far, but I'm not sure what to put as the next steps.
https://daily-seagull-a5e.notion.site/Woo-_wpmr_upc-to-Brand-field-f319176939b341628a6ddd0ea1ef5248?...


Thank you!

Reply 1 (1)

Liquify
Shopify Partner
98 1 59

for anyone else ending up here
you need to use a foreach action after the {{ get product data }}
e.g. if you get 10 products
you then need to loop through them to check things like if values exist or to take an action

 

Screenshot 2024-09-12 at 15.28.49.png

★★★ Need help setting up your Shopify store? Hire me here: https://liquify.design ★★