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 :
Small and medium business | Business Central, N...
Suggested Answer

Query last entry for Production Order in Capacity Ledger Entry

(0) ShareShare
ReportReport
Posted on by

I am trying to create a query and identify the last Operation Number in the Capacity Ledger Entry table. I want to select 

 column(Operation_No_; "Operation No."{
                        Method = Max;
                     }
The issue is that it is telling me that the method can only be used on columns that have a Decimal, BigInteger, Integer, or Duration type. This column has values like '010', '020'..,100, etc. 
How can I go about getting this information from Business Central. From NAV, we got it just through SQL through

SELECT [Prod_ Order No_] AS number, MAX([Operation No_]) AS operation
FROM dbo.[Capacity Ledger Entry]
GROUP BY [Prod_ Order No_]
Any help or guidance would be appreciated.
Thanks,
Kevin
  • Suggested answer
    JAngle Profile Picture
    159 on at

    This might be a good way to go: demiliani.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 452 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 371 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans