Is it possible to write a flow that looks at inventory and out of stocks an item when it meets a threshold?
For example: Out of stock Item(IF_InventoryQuantityChanged<10,Mark Item out of stock,Instock)
Is it possible to write a flow that looks at inventory and out of stocks an item when it meets a threshold?
For example: Out of stock Item(IF_InventoryQuantityChanged<10,Mark Item out of stock,Instock)
Hi @Olivere91 ,
Thank you for reaching out to the Community! I’m happy to provide some assistance with setting up a workflow to help manage inventory.
I would encourage you to check out our list of available Workflow Templates as it covers a few example flows that can be created. For inventory specifically, we have a great workflow called Merchandise Low Stock Products and Hide When Out Of Stock that can be utilized to achieve what you’re looking for.
Once added to your templates, you can customize this to ensure products are hidden when inventory is below a certain value (i.e 10). For ease, I’ve provided a screenshot of what the flow will look like that you can refer too:
Please let me know if after adding this workflow, you continue to run into issues!
Hi Blair,
Instead of hiding/unhiding products with flow automation, making it look out of stock so that it’s still searchable and customer can still find it in the shop but they see that it is out of stock.
Here is my dilemma, I run a grocery store where I have walk in customers, sometimes we are not quick enough to pick the order and for a low stock item there is a chance that someone can walk in and pick all the items from the shelf before we can.
So I’d like to create a scenario different to hiding a product because I still want the customer to acknowledge that we do sell the product.
I want to be able to create a rule that forces stock quantity to be 0 on shopify if it changes to less than 4. However there is no such option to update the stock quantity based on a set of conditions.
My 3rd Party Pos system updates stock quantities on Shopify as and when an item is sold in the physical store: when a product has 3 items left on the shelf, even if I manually change the stock quantity to 0 on shopify and then one more item is sold in store, it will update shopify stock to 2 and make it back in stock.
If there was an action feature to update stock quantity in Shopify Flow, this would solve my problem. I can set the logic as:
Trigger: Inventory Quantity Changed
Then: Check if total inventory is less than 4
Action: Update inventory quantity to 0
Even if my POS system updates the quantity and is still less than 4, this flow automation will be able catch it and set it back to 0 and help me create the desired Shopify experience for my customers.
Any suggestions will be appreciated. ![]()
With the help of another post I managed to do exactly as this. https://community.shopify.com/post/1919450
Basically, you need to use Shopify API calls to be able to set inventory level to your desired amount. Follow the instructions in above link, it took me about an hour tops to get it all working.
Here is what my flow automation looks like:
Send HTTP Request Action needs be used.
After the inventory level is set to 0, the flow automation sends me an email to let me know.
In my scenario I don’t want to know about products that naturally went out of stock, say I had 5 and a customer purchased all 5. If previously the stock was above my threshold and now falls below the threshold, the flow automation sets inventory level to 0 and sends me an email. If my POS system changes the stock quantity from 0 to 2 because I had 3 in my physical store and 1 has been sold (anything below 4 being my threshold), the automation kicks in again and sets it to 0 but this time doesn’t send me an email.
Here’s what my internal email looks like with my limited html skills
: