Triggering Script when item quantity gets updated

SOLVED

Hello,

I have a bunch of custom scripts that get triggered Post-Write on different tables, for example, sales order, item, alias, etc.

Only one script would not trigger, and I can't find why. The script should trigger Post-Write on the table IM_ItemWarehouse. I actually need it to trigger whenever the quantities for an item in a warehouse change. For example, if I create a PO to order an item in item maintenance, I can see that I have X of this item on the PO. The same applies to sales orders. However, my script doesn't get executed. There is a trace that should be logged in the trace window, indicating that it is getting executed and nothing is happening.

I linked the script to the table IM_ItemWarehouse in Custom Office.

My only guess is that that table gets written to indirectly, so the script doesn't execute.

Any ideas?