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

Topic summary

A user is migrating from WordPress to Shopify and needs to automatically copy data from a metafield (‘woo._wpmr_upc’) to the standard ‘barcode’ field for products.

Proposed Solution:

  • Using Shopify’s Flow app to automate the process during migration
  • Initial workflow steps have been added but the user is uncertain about next steps
  • A screenshot/image was shared showing the current workflow configuration

Key Technical Guidance:

  • After retrieving product data, a “foreach” action is required to loop through multiple products (e.g., if 10 products are retrieved)
  • This loop allows checking if values exist and taking appropriate actions for each product individually

Status: The discussion provides a partial solution but the complete workflow implementation remains unclear. The user is seeking guidance on structuring the remaining steps in Flow.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

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?pvs=4

Thank you!

2 Likes

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