web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Issue with pagination, nextLink is null in OData API

(1) ShareShare
ReportReport
Posted on by 5
Hello Experts,
 
I'm facing an issue in pagination in JS getting data from Dynamics, I'm trying with contacts, I have more than 3000 contacts in Dynamics, and I'm using the following API
 
https://OrgName.api.crm.dynamics.com/api/data/v9.1/contacts?$top=20&$count=true
 
nextLink is always null in the API response, I'm also adding the following in the header
 
Prefer: "odata.include-annotations=*
 
I don't know why I'm not getting the nextLink in the API response.
 
 
 
Thanks,
Muhammad
 
 
 
 
 
 
 
 
 
I have the same question (0)
  • Verified answer
    CU13080324-0 Profile Picture
    16 on at
    "$top=20" is designed for limit the row count not the page size. For paging, you can use the header "Prefer: odata.maxpagesize=2". Mode detail here.
  • CU12082026-1 Profile Picture
    5 on at
    It works, thank you so much

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

Season of Giving Solutions is Here!

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 > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 36 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans