Tag Info

Hot answers tagged

5

Instead of removing sites in foreach try passing it to Remove-SPSite using pipeline: Get-SPSite -Limit ALL | Where-Object { $_.Url -Like "*personal*" } | Remove-SPSite Or shorter version: Get-SPSite -Limit ALL | ? Url -like *personal* | Remove-SPSite


2

You need to execute a query again to fetch that, so modify var parent=ct.get_parent(); ctx.load(parent,'Name', 'Id');//, 'Include(name)'); to something like var parent=ct.get_parent(); ctx.load(parent,'Name', 'Id'); ctx.executeQuery(function(){ // Here you will have `ct.get_parent().get_name(); }, function() { ...


2

CAML schema is case-sensitive. You need to change <values> to <Values>. In general all elements are capitalized, but for some reason there are elements like <CHOICES> written in uppercase. When in doubt, best reffer to Collaborative Application Markup Language (CAML) schemas on MSDN.



Only top voted, non community-wiki answers of a minimum length are eligible