SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On a MOSS 2007 Team Site, I used the Web UI to add a View, and used the Web UI to filter it in order to fetch the items where Title equals ACME\Joe.

<Query><OrderBy><FieldRef Name="ID"/></OrderBy><Where><Eq><FieldRef Name="Title"/><Value Type="Text">Acme\Joe</Value></Eq></Where></Query>

I opened this View in Designer and pasted some of the CAML that was generated above.

Is there a way to modify the XML so that the fixed "ACME\Joe" is replaced by the username or userid of the currently logged in user, whatever is easier to get? I can ensure the username, userid, or anything, for that matter, populates the Title field.

My goal is to have a view that returns the items created by the currently logged in user.


share|improve this question
up vote 1 down vote accepted

Yes, you will need to use [Me] keyword. Please check following article for further reference:

share|improve this answer
Perfect; Just tested. Many thanks!! – user815460 Aug 20 '11 at 2:29

Your Answer


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.