Goal: Read a boolean field (enabled) from a product_preorder metaobject attached to products, within a Shopify Flow that runs on new orders.
Key guidance:
First determine if the metafield is a single metaobject reference or a list. Use reference for single, references for lists.
After confirming namespace/key, access the metaobject’s fields via metafields → reference(s) → fields and look for the field named enabled.
If it is a metaobject, select Metaobject first in the Flow data picker to expose its fields.
User findings/questions:
Couldn’t see fields under metafields_item → reference in the Flow UI despite exploring product levels. Shared screenshots of the Flow and metaobject setup (images are used to show UI structure).
Considering removing the enabled field as the metaobject’s presence might implicitly mean enabled.
Status and next steps:
Partial guidance provided; no confirmed working expression shared yet. User should select Metaobject, then navigate to fields and target enabled; choose reference vs references appropriately.
Platform team notes improvements are in progress to make this easier. Discussion remains open.
To clarify, you would check the namespace and key as you are doing already. Then you would need to check the field name under “metafields / reference / fields / name == enabled”.
I’ll add - keep going with this, but we are working on improvements to make this way better.
I didn’t see any “fields” under “metafields_item / reference”? I tried to go into the “product” and explored several levels in there but didn’t see anything where I can access the field’s name.
I would be great if improvements could be done on this so its easier to use!
Honestly I just might remove the “enabled” field off the schema in this metaobject because it seems redundant - I think if the metaobject exists on a product, then it is enabled. I might be making this too complex.