PnP Timer Job ClientContexts

Occasional Visitor

Hi All,


I have been working on a timejob app, based on the PnP-Sites-Core TimerJob framework component, to run against SharePoint 2013, and came across some unexpected behaviour.


One of the operations of my app is to query the Site.RootWeb.Fields collection an enumerate all the fields.


If I execute the query from the TimerJobRunEventArgs.SiteClientContext it seems to limit the result set to 750 items. If I execute the query against the TimerJobRunEventArgs.WebClientContext I get 810 results, which is correct.


Why does the TimerJobRunEventArgs.SiteClientContext limit the result to 750?


What other differences are there between these two contexts?

When should I use one over the other?


Thanks in advance


0 Replies