Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I am trying to update the product category field using flow upon product creation when a product tag matches a certain value.
I have found a searchable list of the shopify's standard product taxonomy (it's here for anyone interested: https://shopify.github.io/product-taxonomy/releases/unstable/?shpxid=a02a363e-0852-4075-31FD-D61DCE0...) so can identify the 'Category ID' value to be used.
I assume shopify's product category field is a metafield and therefore the action required in Flow is to update product metafield. Is this correct and if so, how can I locate the namespace, key and type so I know what is required to be entered in the Flow action?
If what is required in the Value field for this query is more complicated than entering the correct 'Category ID' from the taxonomy list then please can you let me know the correct code/variable to enter.
Is there a full list of namespace, key & type for each of shopify's metafields (the product category one specifically in this case) that I can reference for other queries like this that I have?
Hi @SAnderson_GW 👋 I don't think product categories are defined as metafields on the product but rather in the category field on the product. You can probably automate setting that value in Flow using a productUpdate mutation via the Send Admin API request action.
I am using this type of mutation but the category field is not available.
Hmm, looks like productVariantUpdate might be a way to update product.category. Have you tried that?
I also need to be able to do this and don't know how to write mutations. It feels strange that this is such a key Shopify feature that they've launched and they've also launched so many updates to Flow, but they don't have this very simple capability. Also, the AI that suggests the Product Category is not very good... lol
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025