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

I have currently 2 custom SharePoint lists. One represents questions, the other one answers.

Both lists have the default columns in place: ID, modified by date and username.

The requirement is now to get the 3 most recent items (indepent of the list) or submissions.

What is the easiest way to do this using CAML queries?

TIA

share|improve this question

3 Answers 3

If you need 3 most recent items independent of list then you can use Conten Query Web Part or Search Query Results Web Part. Constrain query by you's two list and

Sort the items by Modified date, Then set item limit to 3... :)

share|improve this answer

Kris i think you needto sort using modified date and you should be fine See this :http://www.u2u.be/res/tools/camlquerybuilder.aspx Patrick

share|improve this answer

Sort the items by Modified date, Then set item limit to 3... :)

share|improve this answer

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.