RE: Alert when Inventory Amount = 0 for an item
Surely the simplest thing you can do is the following:
do a codeunit, in it do a function that is subscribed to the event of insertion of item movements (Item ledger Entry [T32]) , or in the validation Event of the Quantity field of that table (most likely OnBefore Events). Just at that moment when you have the quantity, you calculate the inventory of the product and subtract the amount of that movement, if it becomes zero or negative you call the functions of the Codeunit 400 to generate emails, as long as before the inventory has been positive and the movement negative.
All this is theory, the important thing is to which event you subscribe, since it will depend on how NAV generates the item movement.
I hope you find it useful.
Regards