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
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
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 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
Abstract Spaces has a good post here which lays out many types and enumerations which are regularly used within CAML.
Recently I’ve been customizing Content Query Web Parts (CQWP) whereby I override the query and supply my own CAML query. The basic steps involved in doing this are; Author the Web Part using the UI Export the Web Part using the UI Customize the Web Part .webpart file Import the customized Web Part back into … Continue reading SharePoint: Content Query Web Part Customizing the Query