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

Stock On Hand API with better performance for PowerBI

(0) ShareShare
ReportReport
Posted on by 3,378

Hi All

I can create an API using item ledger entries to pull stock on hand by warehouse and lot number. However, since this table is quite large, I'm looking for options to create a better-performing API. One option is to filter at the source for ILE lines with remaining qty <> 0- is it possible to define filters at the API level?, another would be to create a flow field on the lot number but in BC there is no separate table for lot numbers.  Looking for other suggestions

Thanks

  • Suggested answer
    YUN ZHU Profile Picture
    103,216 Super User 2026 Season 2 on at

    Hi, The following info comes from AJ. I think you can add some filtering in OnOpenPage trigger.

    More details: https://www.youtube.com/watch?v=5iRv0y0rVzw&t=47s

    pastedimage1669938953511v1.png

    pastedimage1669939112906v2.png

    pastedimage1669939123562v3.png

    Hope this helps.

    Thanks.

    ZHU

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 755 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 413 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 387 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans