I wrote an Post earlier about various options in SharePoint 2010 to get all the documents Modified by the current user with various OUT-of-Box methods. In this Post we will discuss how to get the documents Modified by the current user using the Object model CAML query.
If you want to get all the documents Modified by the current user in a SharePoint site you can use the below query with SPSiteDataQuery or if you just want all the documents Modified by the current user in a library, then you can use the below query with SPQuery object.
CAML -
<Where><Eq><FieldRef Name='Editor' LookupId='TRUE'/><Value Type='Integer'>'UserID'</Eq></Where>
No comments:
Post a Comment