Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 3 down vote accepted

Jup, there is a way - with calling Method GetListAndView

share|improve this answer
    
Perfect, thanks. –  DeeMac Jun 18 '12 at 16:26
add comment

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

http://spm.codeplex.com/

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

share|improve this answer
    
Thanks a lot, downloading it now... –  DeeMac Jun 18 '12 at 16:38
add comment

Your Answer

 
discard

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.