StockLevelChanged event running more than once
Posted: Fri Dec 30, 2022 4:28 pm
Hi Everyone,
I am using the StockLevelChanged event on ApplicationManagerPlugin class. The problem is when I activate a Stock Take from Inventory > Stock Take and put the debugger in the code, the debugger hit multiple times for a single inventory.
I checked the REST API plugin, and their inventory.stocklevel webhook was implemented using the same event and because of this behavior the webhook also triggered multiple time
Is this normal behavior? If so how can I make it run only one time for each inventory? It exhausts the other application endpoint.
I am using the StockLevelChanged event on ApplicationManagerPlugin class. The problem is when I activate a Stock Take from Inventory > Stock Take and put the debugger in the code, the debugger hit multiple times for a single inventory.
I checked the REST API plugin, and their inventory.stocklevel webhook was implemented using the same event and because of this behavior the webhook also triggered multiple time
Is this normal behavior? If so how can I make it run only one time for each inventory? It exhausts the other application endpoint.