Loading

How to work with $top and $skip queries in ODATA

Data pubblicazione: Aug 6, 2025
Operazione

GOAL:

This article will help you in working with $skip and $top.

$top and $skip are used to limit the amount of data.
This is done by calculating an offset and the number of records to return.
The offset is set using the $skip system query option and the number of items returned via the $top system query option.
If only the first n items are required then it is sufficient to omit the $skip directive.

$top is used to get the list of elements from the top based upon the number that you pass.
$skip is used to skip the first n element based upon the value to specify in there.

Fasi
http://localhost:8081/api/odata.svc/customers?$format=json&$top=2&$skip=10
 

It will give the 11th and 12th elements as a result.

 User-added image

 

Numero articolo Knowledge

001116136

 
Caricamento
Salesforce Help | Article