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

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
    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,397 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,397 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,397 on at

    try ?$top=200000

  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    hello

    or try

    ?limit=0&offset=5000

    ?limit=5000&offset=10000

  • Suggested answer
    DAnny3211 Profile Picture
    11,397 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,397 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

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 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans