Tag Archives: CAML
grwf-ft

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 […]

Read more
dfwp-ft

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 […]

Read more
ft-caml

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 […]

Read more
ft-caml

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 […]

Read more

CAML Related OM Reference Cheat Sheet

Abstract Spaces has a good post here which lays out many types and enumerations which are regularly used within CAML.

Read more
Follow

Get every new post delivered to your Inbox.

Join 426 other followers