SharePoint CAML paging with CSOM

When you are querying a big bunch of list items you should consider to use paging functionalities. For example you could download 2000 items within ten separate requests were each one queries a bulk of 200 items.

This will spare the server performance and speeds up the transfer over the wire. When downloading all items at once can lead to a time-out for example.


Check if file exists in list / library with CSOM

When you already know the full URL of the file you can use this code: In the following example we check if a certain file (Item_TwoLines.js) is existing in the Master Page catalog with the usage of CAML. When the item variable is not null, the item is existing. So should be the attached file. Read more about Check if file exists in list / library with CSOM[…]