Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Unable to get Correct OnHand Inventory through x++

Posted on by 10

Hi Experts,

While trying to get OnHand inventory through X++ code, it shows historic values, not the updated value.

e.g. When we are looking for specific Item and DimID, in Form or Table Browser it shows 100, but when I am running Inventsum::Find(itemid, Dimid) it always show 99.

Any help appreciated.

*This post is locked for comments

  • Suggested answer
    guk1964 Profile Picture
    guk1964 10,877 on at
    RE: Unable to get Correct OnHand Inventory through x++

    Inventory management -> Reports -> Physical inventory -> Physical inventory by inventory dimension.

    You could use this report or the code logic behind it.

    You can also query with SQL

  • Suggested answer
    Moeen Ahmed Sultan Profile Picture
    Moeen Ahmed Sultan 1,402 on at
    RE: Unable to get Correct OnHand Inventory through x++

    Hi,

    To get on hand inventory (quantity) of an item using x++, please read this blog post: msdynamics.nevoitech.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans