Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Okay, I've been trying and logging but can't get the syntax right for this:
I'm trying to access the value of a field inside a metaobject I've attached to products. It is a boolean value.
Namespace: product_preorder
Field:
How do I access the value of the "enabled" key on the "product_preorder" metaobject inside products inside an order?
If it's a list, the references are on "<resource>.metafields.references.fields"
If it's a single value, use "reference" instead
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.
Thanks @paul_n !
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.
Sorry, if it's a metaobject, then select Metaobject first. I think fields is there.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024