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

And if I need to make the same count but with some field filters?

Is the best approach populate a list using SPSiteDataQuery and then make the report from that same list?

spregards

share|improve this question
1  
Do you have to do it once or many times? if it's once, a simple recursive powershell script can do the job. –  Steve B Jun 22 '12 at 12:13
    
I want to have it always displayed and reported. I try via Report Builder but that way comes up to be restrictive in terms of filtering by content types fields. Now I'm inclined to populate a list using SPSiteDataQuery and then make the report from that list. –  fallout Jun 22 '12 at 12:50
add comment

1 Answer 1

up vote 3 down vote accepted

If you're talking about using the Object Model, then I'd recommend SPSiteDataQuery.

It has many options for filtering the results, including by list template (e.g. document library).

share|improve this answer
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.