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

Community site session details

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

How do I just get the total count from API without fetching the items?

(0) ShareShare
ReportReport
Posted on by

I have a million records in ITEMs, and I use @count=true to get the total, but it includes the items data, is there a way to just get the count but not the actual content?

  • Suggested answer
    YUN ZHU Profile Picture
    on at
    RE: How do I just get the total count from API without fetching the items?

    Hi, just using endpoint + $count.

    For exmaple,

    api.businesscentral.dynamics.com/.../$count

    More details: https://yzhums.com/6117/#toc14

    pastedimage1662699655956v1.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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans