Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Pagination for long json response (trial version)

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,590 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,556 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,625 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans