0

Is it possible to get all documents that are marked as "new" in sharepoint 2010? How can this be done? I already have a query where I get all latest documents, but I need to find out what ViewFields I need to add (if this exists of course...) How would you get it else?

4

You need to retrieve SPWebApplication.DaysToShowNewIndicator and the build a query to retrieve documents created within that number of days. For more code see Getting the list of new items from code

0

You can use CAML's <Today> element to retrieve documents created within a relative timeframe of today. You would query the Modified field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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