Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

How can I use offsets and limits in Web API

(0) ShareShare
ReportReport
Posted on by 2

Hi,
I am using page & count in fetchxml .

 

<fetch mapping="logical" count="10" page="1">
  <entity name="contact">
    <attribute name="fullname" />
  </entity>
</fetch>
 

How can I achieve the same in Web API using limit and offset


Thank You.

Categories:
  • Bhargav1729 Profile Picture
    2 on at
    Re: How can I use offsets and limits in Web API

    Hi @mandela ,

    Yes, I tried using 'top' and 'skip', but the issue lies with 'skip'. When I used 'skip', I encountered an error stating that the 'skip' clause is not supported. Upon reviewing the documentation, I confirmed that 'skip' is indeed not supported. Are there any other alternatives?Screenshot 2023-09-17 123758.png

     

     

  • Akah Mandela Profile Picture
    445 on at
    Re: How can I use offsets and limits in Web API

    Have you tried with skip and stop ?

    GET [Organization URI]/api/data/v9.0/contacts?$select=fullname&$top=10&$skip=0

    This will return the first 10 records from the ‘Contact’ entity, starting from the first record. 
    or 

    GET [Organization URI]/api/data/v9.0/contacts?$select=fullname&$top=10&$skip=10

    This will return the next 10 records, starting from record number 11.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey 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 > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43