· DataEase · Tutorials · 2 min read
Add Metafields to Shopify Products
Adding or updating metafields for many products at once can be time-consuming if done manually. DataEase makes it easy: export your products, edit metafield values in Excel or CSV using namespace:key pairs, and import them back to Shopify—all with type-safe validation.
🎯 Goal
Add or update product metafields in bulk using CSV/Excel and DataEase. Use clean namespace:key pairs with type-safe values.
📋 Step-by-Step Instructions
1. Export Products
In DataEase, go to New Export → Products. Include at minimum:
idhandle
Optionally add existing metafields to review current data.
This will give you a file with all your products ready for editing.
2. Choose How to Edit Metafields
DataEase supports two methods for editing metafields:
Dynamic columns (recommended): Add one column per key, named metafield: {namespace} / {key} (e.g., metafield: my_fields / material). Enter the value directly in the cell.
Single “metafields” column: Provide multiple entries in one cell as namespace:key = value; namespace2:key2 = value2 (semicolon-separated).
3. Edit the File
Open the exported file in Excel or Google Sheets. For every row you want to change:
- Set
command= UPDATE - Fill your metafield values using the appropriate format:
- Strings: plain text (e.g.,
Organic Cotton) - Numbers: numeric formats (e.g.,
42,19.95) - Booleans:
TRUE/FALSE - Date/Time: ISO-8601 format (e.g.,
2025-11-05T10:00:00+01:00) - JSON: valid JSON (e.g.,
{"color":"red","size":"m"})
- Strings: plain text (e.g.,
When done, save the file as .xlsx or .csv.
4. Import & Validate
- In DataEase, start New Import
- Upload your edited file
- Map columns (Product ID preferred)
- Run Validation
Open the validation report and fix any type/format issues flagged in Validation Status.
5. Run the Import
After validation passes, click Run Import to apply your metafields to Shopify.
Once complete, spot-check products in the Shopify admin to confirm everything looks correct.
📝 Important Notes
- Clearing a metafield: Leave the dynamic column’s cell empty for that key on UPDATE to remove it
- Types: The validator checks Shopify metafield types (string, number, boolean, date_time, json, etc.). Use appropriate formats to pass validation
- Consistency: Keep namespaces and keys consistent (
my_fields.material, not mixed casing/spacing) - Variant metafields: Follow the same approach on variant-level exports (see Variants guide) using Variant ID and the corresponding metafield columns
💡 Minimal CSV Examples
Dynamic columns (recommended):
id,command,metafield: my_fields / material,metafield: my_fields / season
gid://shopify/Product/123,UPDATE,Organic Cotton,Summer 2025
Single “metafields” column:
id,command,metafields
gid://shopify/Product/456,UPDATE,"my_fields:material = Organic Cotton; my_fields:season = Summer 2025"
Clear a metafield (dynamic column left blank):
id,command,metafield: my_fields / material
gid://shopify/Product/789,UPDATE,
🎉 That’s it!
Your metafields are now added or updated in bulk.
If you run into any issues or have questions, feel free to contact our support team.