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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Suggested Answer

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans