Skip to main content

Notifications

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?

  • 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
    9,276 Moderator 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
    9,276 Moderator on at
    RE: ODATA Web Services

    CIao

    However, I recommend you read this

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

    DAniele

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: ODATA Web Services

    hello

    or try

    ?limit=0&offset=5000

    ?limit=5000&offset=10000

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator 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
    9,276 Moderator 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
    9,276 Moderator 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,190 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans