SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

An SPSiteDataQuery. So far I have:

query.ViewFields = @"<FieldRef Name=""Title"" /><FieldRef Name=""Author"" />";

I just happened to get these two FieldRef's right (purely because they were easy to guess the names of) - but is there an actual list available anywhere for me to find out the names of the published date fields fieldrefs etc.

Thanks a lot.

share|improve this question
up vote 3 down vote accepted

Jup, there is a way - with calling Method GetListAndView

share|improve this answer
Perfect, thanks. – JᴀʏMᴇᴇ Jun 18 '12 at 16:26

If you want to use a tool that exposes various properties of the SP object model (basically allows you explore all of the sites' fields, lists, content types, and other nitty gritty) and you don't want to have to return to sites like this to discover the next magical method, you really ought to try installing SharePoint Manager 2010

Big time saver, especially when just getting your SP developer feet wet.

share|improve this answer
Thanks a lot, downloading it now... – JᴀʏMᴇᴇ Jun 18 '12 at 16:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.