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

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)
  • Folayinka Profile Picture
    5 on at
    RE: ODATA Web Services

    $top=200000 didn't work, it ran into error of long response time.

    I'm trying the limit and offset method.

    I also saw that I could use 'start' instead of offset. So I'm trying both simultaneously

  • Suggested answer
    DAnny3211 Profile Picture
    11,347 on at
    RE: ODATA Web Services

    check my answer if it helped you, thanks

    DANiele

  • Folayinka Profile Picture
    5 on at
    RE: ODATA Web Services

    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.

  • Folayinka Profile Picture
    5 on at
    RE: ODATA Web Services

    Trying this approach now

  • Suggested answer
    DAnny3211 Profile Picture
    11,347 on at
    RE: ODATA Web Services

    CIao

    However, I recommend you read this

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

    DAniele

  • Suggested answer
    DAnny3211 Profile Picture
    11,347 on at
    RE: ODATA Web Services

    hello

    or try

    ?limit=0&offset=5000

    ?limit=5000&offset=10000

  • Suggested answer
    DAnny3211 Profile Picture
    11,347 on at
    RE: ODATA Web Services

    try ?$top=200000

  • Folayinka Profile Picture
    5 on at
    RE: ODATA Web Services

    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,347 on at
    RE: ODATA Web Services

    hi

    look this also

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

    pastedimage1670336167631v1.png

    check my answer if it helped you, thanks

    DANiele

  • Suggested answer
    DAnny3211 Profile Picture
    11,347 on at
    RE: ODATA Web Services

    Hi

    After your odata url add this for example:

    ?$top=5000

    where 5000 is the revcord number you want to be returned

    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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,180

#2
Sumit Singh Profile Picture

Sumit Singh 3,063

#3
YUN ZHU Profile Picture

YUN ZHU 2,317 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans