Hello All,
I am making use of CAML Query to filter the records from list into DataTable. I have a SPUser Field in my list.
I am endeavoring to obtain the user id of each user in CAML Query. Any insights on how to achieve this?
Hello All,
I am making use of CAML Query to filter the records from list into DataTable. I have a SPUser Field in my list.
I am endeavoring to obtain the user id of each user in CAML Query. Any insights on how to achieve this?
Get items for an SPUser.ID:
<Where><Eq><FieldRef Name='Person' LookupId='TRUE'/><Value Type='Integer'>45</Value></Eq></Where>
Get items for the current user:
<Where><Eq><FieldRef Name='Person' LookupId='TRUE'/><Value Type='Integer'><UserID/></Value></Eq></Where>
Get items for a user's display name (what is displayed normally in the list):
<Where><Eq><FieldRef Name='Person'/><Value Type='Text'>Lastname, Raghu</Value></Eq></Where>