Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

When a quantity of an item goes to zero, send email reminder.

Using Power Automate, I want to make an email reminder whenever the overall stock-on-hand of any item in my Business Central ERP reaches zero. I am of a low coding / non-development background that would like to be able to take advantage of this tool to produce repeatable actions.


I have created the trigger "When a record is changed (V3)" and selected the environment name, company name, API category and table name easily as well as the condition fork placed after the trigger step. (Will change to a production environment once this testing has been done successfully)



The part that I was stuck on was the part that reads the inventory field in Business Central for an item card.


How do I set a field from the item card into this condition?


On my plan, I have set up my condition so that:

  • IF (for each item in Business Central where the Inventory field reaches 0) THEN (send email reminder).
  • ELSE, (terminate / do nothing / return null).


I have created the destination action forks which I will need to figure out how to accommodate and identify which items has run out of inventory.



This is the field that I am attempting to pull into Power Automate at the moment.



Any help is much well appreciated.


Accepted Solutions
Frequent Visitor

Between "When a record is changed" and "Condition" I believe you need a "Get Record" - that will give you the field Inventory:



View solution in original post

Frequent Visitor

Between "When a record is changed" and "Condition" I believe you need a "Get Record" - that will give you the field Inventory:



Thank you for this. This is what I was looking for.


To distinguish that the item being updated is something we don't intend on selling anymore from what my company is intent on selling, is there a way to look into a particular item's item ledger entry and check if it previously had an inventory greater than zero on yesterday's date?


This is so that people receiving this email is not getting spammed with emails from products warning that there is no more left that are already discontinued/inactive from sales.



My attempt so far is to create another "Get Record (V3)" step that points to the item ledger entry table which uses the row ID "body/id" and adding an additional condition AND that uses Posting Date value is equal to addDays(utcnow(),-1)


Unfortunately, I am getting a 404 Not Found error at the Get Record step from this.



Frequent Visitor

I don't think you can use the Id tag to get the Item Ledger Entry. the ID tag is the unique reference to the item in the table. Every Item Ledger Entry has its own unique tag.

I think you should use a Find Records function instead:



And then use an OData Query to find , wether or not it has records.

Thanks for that.

I have revised my flow so that I am using "Find Records (V3)" now and used the Filter Query "postingDate ne null" to check whether it has item ledger records or not which as a result functionally works successfully.



Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,240)