In SharePoint 2010 once I had found a lot of errors in time of execution or publishing workflow processes: "(-1, -1) Type System.CodeDom.
(read more...)
In SharePoint 2010 once I had found a lot of errors in time of execution or publishing workflow processes: "(-1, -1) Type System.CodeDom.
(read more...)
SharePoint list (SPList) has grown up to immense size and started to decrease performance. To solve this, I decided to cut this SPList to pieces – to create archives and save items there by year.
I'm trying to remove all permissions from a list item in SharePoint 2010. There was a lot of permissions because of the "Limited access". I couldn't check all items because of the constraint of maximum selected items. This script is 100% compatible with SharePoint 2013 and SharePoint 2016.
I used Advanced Workflow Actions for SharePoint Designer 2010 from iLoveSharePoint for Workflows in SharePoint site. And one of used by me activities was "Execute PowerShell Script Action".
If you want to customize a NewForm for SharePoint list so, that users can add attachements in the same interface as other form fields, you should place control for adding attachments to a form. The problem is that this is not described and you really have to rewrite already half-prepared control.
Snippet to render Attachments Row in SharePoint 2010 Custom Edit Form
Here is the snippet of how to Create Folder in Document Library programmatically using the Object Model. It can be used in console applications for loading documents or timer-jobs.
I have copied exported site to another farm and tried to restore. After executing of cmd-let for restoring spweb (Import-SPWeb -Identity http://spdev/forums/ -Path D:\Backups\forums.bak) I've got an error:
Import-SPWeb : Could not find file 'C:\Users\spadmin\AppData\
SPWeb object has 2 different properties for work with groups. There are Grops and SiteGroups. Inspite of the fact that they look very similar, they are different.
Information about files in document libraries is strored in the table "AllDocs" of Site's content database. Of course, Microsoft doesn't allow to make queries to SharePoint databases directly. But I can't but agree with inserts and updates are not allowed, but select query in the worst case will make just some locks in database. So I guess that in some cases it's much better to execute select query than powershell script.