0

When doing a GET call to the List API from JavaScript

"/_api/web/Lists/GetByTitle('Listeditems')/Items?$top = 250"

We are getting only default 100 values.

There are about 210 values. How can I show all the values?

0

I think it is just a typing mistake.

Remove space before and after = sign.

Refer below line. It will work.

/_api/web/Lists/GetByTitle('Listeditems')/Items?$top=250
  • No. i am getting the same default (100) items. – user76406 May 31 '18 at 10:17
  • Yes. Because by SharePoint REST api you can get 100 items only by default. However you can get more than 100 items using $top. But in your case you have added extra space before and after the = sign. SO it just ignores the $top and returns default 100 items. – Rohit Waghela May 31 '18 at 10:21
  • Just try to remove the extra space. And check again .. – Rohit Waghela May 31 '18 at 10:22
  • I ran the script which you provided /_api/web/Lists/GetByTitle('Listeditems')/Items?$top=250 but getting 100 items only – user76406 May 31 '18 at 10:28
  • Did you get any error ?? – Rohit Waghela May 31 '18 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.