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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Unable to get Correct OnHand Inventory through x++

(0) ShareShare
ReportReport
Posted on by 12

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

I have the same question (0)
  • Suggested answer
    Moeen Ahmed Sultan Profile Picture
    1,402 on at

    Hi,

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

  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans