Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi-
We have different products that need to trigger low stock warnings at different inventory levels, and we have those set in a custom metafield on our products (called 'Low Stock Warning'). I found the template for 'Get notified by email when product variant inventory is low', but that only lets me set a single number for all products. Is there any way to adapt that to use the number stored in the metafield as the point of comparison instead? I tried looking at the various metafield options, but I'm very confused...
The problem you'll run into is that metafield values appear as strings to Flow. So you can't compare them as numbers except in liquid. We are working on some improvements to this so you can use the metafield like this.
If your logic can live in an action via liquid, for example to control what is show in a notification, you could do this. But if you need to control sending the email, you'll need to wait.
Looking for the same. But is it possible with the getProducts action like in my attachment? I can't write liquid so I tried with GPT 😄
That field is for writing a query string for the API. I'm not sure what you are trying to do there. Click on the help below the field to see how to use the fields (or try another option in the dropdown to see the syntax).
Also, I'm not sure that comment syntax will work. I've only used {% comment %}test{% endcomment %}
Finally, you can now use Run code to get a specific metafield value and output it in way that can be used in a condition (like as a number).
Since this isn't possible currently in Flow, I thought I'd recommend our automation app mesa as a solution here. I could build you out a template for this if you were interested.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024