SharePoint Experts, Information Architects, Expert Witness

SICG provides a broad array of business and technology consulting from architecture to design to deployment of global systems with a focus on surfacing data in the enterprise. We focus on the "How", not just the possible. Contact me direct: david_sterling@sterling-consulting.com or call 704-873-8846 x704.

Search This Blog

Tuesday, July 12, 2011

Fastest way to create a custom ListDefinition 2010

As we all know, it can be a real pain to code out a custom list definition in SharePoint. Sure, not complicated but sheesh - enough with the typing!

Anyway, quick tip on getting the proper Schema information when you want to create a list. Create the majority of the list in SharePoint (views, etc. too). When done, you can use the following:

http://<Site URL>/_vti_bin/owssvr.dll?Cmd=ExportList&List=<ListGUID>

Note that if you navigate to a list and go to list settings, the "List=GUID" is there for you to copy.

The benefit of this method is that the Schema for the list is 'complete' and has all views, references to existing site columns, etc.
Post a Comment