Tag Info

New answers tagged


Use ListItem.DeleteObject Method to delete the document item from a Library, for example: var list = ctx.Web.Lists.GetByTitle(listTitle); var listItem = list.GetItemById(listItemId); listItem.DeleteObject(); ctx.ExecuteQuery();


i did a powershell script. it works but MS are not agree to modify this list Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $url=Read-Host "Site Url" $siteCollection = Get-SPSite $url $web = Get-SPWeb($url) $termSet = Get-SPTaxonomySession -Site $url $termStore = $termSet.TermStores["Remote UnPartitionned Metadata Service ...


I found a solution to the original problem that was posted here, it took me whole day struggling with xml returned by query. Solution is, In ViewFields, terminate the internal name up to 32 charachters. And then, while getting value, use the internal name terminated up to 32 chars. This is definately poorly tested code by Microsoft pushed in SP 2010. ...

Top 50 recent answers are included