Omicron Llama

Coding all day, every day.

August, 2013

A Very Damned-Useful Extension Method

Trying never to use SPList.Items (due to Best Practice), yet needing to grab some items from a list quite often? Here’s an extension method which I use a fair bit.

You can then use regular LINQ queries to get the item or items you need against the object returned by this, for example:

[…]

Routing Engine: EvaluateCondition threw an exception.

Scenario: You’ve programmatically provisioned some Content Organizer Rules to send some documents somewhere based on a Managed Metadata Field. When you upload a document and set that field to something matching a condition, it throws an error, and you see this in the event logs:

The thing to watch here is the last bit […]