Category Archives: SharePoint

SharePoint List Performance (or how I saved 94%)

In a recent performance test session, I had created a thousand documents in a document library. They all had a 20 custom metadata fields filled out with data. The unit under test read all this data along with the common file information like this: SPUser user = listItem.File.CheckedOutByUser; result.CheckedOutBy = user != null ? user.LoginName [...]

SharePoint web.config modifications

WSP deployment packages is the MSI for SharePoint. It really helps server administrators manage deployment as well as developers packing functionality and content in compact packages. With the introduction of Visual Studio 2010 it became easier to produce all kinds of WSPs right in your favorite dev env. Custom web.config modifications is one aspect Visual [...]

SharePoint – How a little LINQ magic can list all user’s permissions

To manage authorization in SharePoint you define a set of roles with permissions that is assigned to groups and users. It is a versatile model with many possibilities. But because of its complexity it is a not as easy as one might think to get a list of what each user can do with a [...]

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( [...]

Follow

Get every new post delivered to your Inbox.