Skip to main content

Notifications

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

Pagination for long json response (trial version)

(0) ShareShare
ReportReport
Posted on by 5

Hello guys,

I am new to Business Central tool.  Recently I started to work on it and I am checking all the information we can get from the REST API.  I need to mention I am using a trial version.  Now I have done a couple of request for one specific endpoint (Items) and I have more that 1000 items.  All that information is coming  in a single response which is quite worrying for me.  According to the following link (https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v1.0/dynamics-rate-limits), it says: If the returned dataset contains multiple pages, then pages must be fetched using the continuation tokens.  My problem is I don't see that token in my response.  Is that feature just available for a full version of Business Central?  What is the reason for not getting that property?

I hope you can help me guys.  I would appreciate some comments.

Thank you.

  • jlondono Profile Picture
    jlondono 5 on at
    RE: Pagination for long json response (trial version)

    Thank you very much.  It was really useful.  Have a good time!

  • Suggested answer
    I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,594 on at
    RE: Pagination for long json response (trial version)

    Check the response header whether  any response with "x-ms-continuation" .

    Alternatively you can also use $top and $skip ,

    https://www.odata.org/getting-started/basic-tutorial/#topskip

    let say for fist page will be $top=1000

    2nd page will be $skip=1000, 3rd page willl be $skip = 2000, ...

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans