web
You’re offline. This is a read only version of the page.
close
Skip to main content
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? 
I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
DAnny3211 Profile Picture

DAnny3211 251

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 90 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans