Why can’t the flow find this metafield by its KEY?
Topic summary
A user is troubleshooting why Shopify Flow cannot locate a metafield using its key. The issue centers on Flow conditions not properly referencing the metafield.
Key Problem:
- Flow searches are failing to find a metafield despite it being configured correctly in the product settings
- Multiple screenshots show the metafield configuration and Flow condition setup
Troubleshooting Steps Discussed:
- Verify it’s a product metafield (not product variant)
- Confirm the metafield is enabled for storefront
- Check the correct metafield type is selected (single line text vs. list of values)
Solution Identified:
The root cause appears to be incorrect condition syntax. The user is checking metafieldDefinitions in the first two conditions, which differs from actual metafields. The correct path should be:
product.metafield.keyandproduct.metafields.namespace
This syntax correction should resolve the lookup issue and allow Flow to properly locate the metafield.
Make sure it`s product metafield, not product variant metafield.
Then, check if it is enabled for store front.
In Flow have you selected the right metafield type?
Which one is right?
Single line text, if you choose to only store single value. If multiple values, then List of single line strings
If those first 2 conditions you are checking metafieldDefinitions, which is not the same thing as metafields. You need to change those 2 to product / metafield / key and product / metafields / namespace.



