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

ODATA Web Services

(0) ShareShare
ReportReport
Posted on by 5

Hi everyone,

our service consumer is trying to read data from our API, but there are too many records of data in one API request.

I have set a dataitem table view in the API design but the records are still too much.

The API response keeps running into an error.

Is there a way I can break the API request into batches?

I have the same question (0)
  • Suggested answer
    srttel Profile Picture
    Microsoft Employee on at

    You might think about filtering the data to get the data in several subsets

    Like discussed here Business Central API limitations - Microsoft Q&A

  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    Hi

    After your odata url add this for example:

    ?$top=5000

    where 5000 is the revcord number you want to be returned

    DAniele

  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    hi

    look this also

    learn.microsoft.com/.../api-design

    pastedimage1670336167631v1.png

    check my answer if it helped you, thanks

    DANiele

  • Folayinka Profile Picture
    5 on at

    Okay, I'll try this.

    What of the remaining records? I have like 200,000 records.

    So after the first 5,000...how do i get the remaining?

  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    try ?$top=200000

  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    hello

    or try

    ?limit=0&offset=5000

    ?limit=5000&offset=10000

  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    CIao

    However, I recommend you read this

    learn.microsoft.com/.../api-design

    DAniele

  • Folayinka Profile Picture
    5 on at

    Trying this approach now

  • Folayinka Profile Picture
    5 on at

    This is an amazing article. I've been watching videos on SOAP and REST web services. But this is by far the most informative and relatable I have seen. Thanks.

  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    check my answer if it helped you, thanks

    DANiele

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans