Friday, May 16, 2008

Add SPLookup column declaratively through CAML XML

Up until a day ago, I thought that adding a SharePoint lookup column through CAML XML was impossible, and that you could only do it programmatically using a feature receiver. It made sense; how can you add a lookup to a list that doesn't exist yet?

A colleague of mine sent through this link to Josh Gaffey's Blog.

Check out how easy it is. I bet there are a lot of smart SharePoint dev's out there saying "I wish I thought of that".

No comments: