web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Inventory Update Class

(0) ShareShare
ReportReport
Posted on by 108

I'm customizing the Sales Order Module and I have this requirement that when there is an update happened in inventory like reserve quantity,picked quantity and everything related with the stock quantity I have this another table that needs to update too. So my question is. Is there a specific class that I can put my code so for example I delivered an Item A with a quantity of 1 in my new table I will update Item A and decrease quantity to 1. But when the item is returned the quantity increase to 1.

I'm using AX 2012 R3. Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You could check InventUpd* classes for this. Try placing a breakpoint and go through the processes that you want to monitor, and see what gets hit where.

  • MC08 Profile Picture
    170 on at

    I used another way to avoid heavily testing on InventUpd as i think i am not too familiar with it.

    Due to every inventory transaction will go through InventTrans table, you can have code in its table methods, e.g. insert(), update(). Then you can depend your situation to add/update record in your new table(s).

    One consideration is performance, so we limited only situations we want  for dealing with the new table.

    The other way you can use is events. But i don't have this kind of experience to share yet. :(

    Hope above is helpful.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    insert and update operations will not be fired on doinsert/doupdate calls which even standard AX uses heavily for various considerations. The recommendations above are still the preferred way.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans