Category Archives: SharePoint

Parsing multivalued SharePoint fields with Regex

As Mark Arend points out on his blog, there are quite a number of ways SharePoint formats complex field values. His list even misses the Lookup multiple values variant that e.g. can be: “Kategori 2;#1;#Kategori 1″. To split the composite fields we need a little regular expression fission: readonly static Regex _regex = new Regex( [...]

Powershell script for copying sp webs to a new site collection

I often see SharePoint farms that contains a single huge root site collection that contains e.g. project team sites and issues sites. Of course that leads to degraded performance and maintainability issues like handling 100GB+ backups. Microsoft recommends keeping content databases below 25GB.

Recover from SharePoint HOS bug

Some SP* API objects like SPApplication have a hierarchial object store for persisting objects, which is great for e.g. timerjobs . The propertybag can serialize strings, value types and specific SharePoint objects for persistence. But the indexer’s setter has a bug that accepts ANY .net object without any error. The next time you access the [...]

Follow

Get every new post delivered to your Inbox.