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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Query as a smart list - how to get Top Number Of Rows?

(0) ShareShare
ReportReport
Posted on by 104

Hi. I add in my query parameter 'TopNumberOfRows = 10'. Unfortunatelly - Smart List based on this query display more results than 10. Can I get only top10 records?

And second question - in Smart List I can only use filters 'inside' Query object? I can't filter this list from other objects/files?

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    TopNumberOfRows should work if done properly.

    Maybe you can share your code?

    learn.microsoft.com/.../topnumberofrows-function

    There should also be plenty of filtering options both inside the object and on the query result.

    learn.microsoft.com/.../devenv-query-overview

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, here is a simple example from MS.

    Query.TopNumberOfRows([Integer]) Method - Business Central | Microsoft Learn

    pastedimage1666228343076v1.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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans