Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

how to do pagination in MS Dynamics REST APIs

(1) ShareShare
ReportReport
Posted on by 30
I want to implement pagination in the API:
 
[dynamics_instance_url]/api/data/v9.0/roles?$select=_businessunitid_value,roleid
 
Currently, it is giving me a list of all the security roles inside the MS Dynamics instance. I want to get 50 results at a time. I tried implementing the
$top and $skip query parameters but, the $skip parameter is only supported in the CRM platform. 
 
How can I implement the pagination on the returned response irrespective of the Dynamics platform? 
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    how to do pagination in MS Dynamics REST APIs?
    Hi Partner,
    Please refer to the following link:
    Dataverse doesn't support the $skip query option, so you can't use the the combination of $top and $skip for paging.
    1.Paging Regular Queries
    Use the Prefer: odata.maxpagesize request header to control the number of records returned. 
    2.Paging with FetchXML

    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 124 Super User 2025 Season 1

Product updates

Dynamics 365 release plans