Creating SharePoint Declarative Workflow Associations using a Feature


This post is about creating Workflow Associations declaratively using a CAML element declaration in a feature. Workflow associations can be created using code (and the SharePoint UI of course), and there are plenty of articles on the interwebz demonstrating this, today, while trolling through an exported site template, I discovered that you can create Workflow Associations using … Continue reading Creating SharePoint Declarative Workflow Associations using a Feature

SharePoint: Adding Default Web Parts to a Publishing Page Layout with Feature Provisioning


You want to add a set of web parts to your publishing page layout, so that when users create new instances of a page using your layout, the page is created with some web parts already added to the page for them. You may want the web parts in that web part zone to be … Continue reading SharePoint: Adding Default Web Parts to a Publishing Page Layout with Feature Provisioning

SharePoint: Dynamically Building Complex CAML Queries


Building CAML queries dynamically can become a gnarly problem, especially when the definition of the query contains some non determinate elements, i.e. you know the combinatorial form of the expression(s) but the expression(s) conditions are 0..n. Building an expression such as this becomes a tricky programming problem, given the way in which <And>, <Or> elements are … Continue reading SharePoint: Dynamically Building Complex CAML Queries

Provisioning a SharePoint 2010 List Instance Causes Exception in a Site Scoped Feature


Provisioning a list using the ListInstance element causes an exception, if the element is included in a Site scoped feature and the RootWebOnly attribute is set to TRUE. Setting RootWebOnly to FALSE, or removing the attribute, works as expected. If the ListInstance element, as shown above, is included in a Web scoped feature, it works … Continue reading Provisioning a SharePoint 2010 List Instance Causes Exception in a Site Scoped Feature