July 2017
Beginner
222 pages
5h 2m
English
Before proceeding with queries or updates, it is important to know that the CSOM API was built with performance in mind. In this case, the approach tries to minimize the calls to the server by caching operations until the ExecuteQuery command is run. What is more, values of objects such as the title of the web in the following example will not be available until the query is committed to the server through ExecuteQuery. It will take some time to get used to this disconnected paradigm. In the context of PowerShell scripting, we do not benefit much from it, and it is mostly a technical hurdle:
$web = $clientContext.Web;$clientContext.Load($web);$clientContext.ExecuteQuery();$web.Title;Team Site
In the following example, we iterate ...
Read now
Unlock full access