We can SPUserField as SPLookupField
<Query>
<Where>
<And>
<Eq>
<FieldRef Name='UserField'/>
<Value Type='Lookup'>" + username + "</Value>
</Eq>
<Eq>
<FieldRef Name='UserField' LookupId='True' />
<Value Type='Lookup'>" + ID + "</Value>
</Eq>
</And>
</Where>
</Query>
<Query>
<Where>
<And>
<Eq>
<FieldRef Name='UserField'/>
<Value Type='Lookup'>" + username + "</Value>
</Eq>
<Eq>
<FieldRef Name='UserField' LookupId='True' />
<Value Type='Lookup'>" + ID + "</Value>
</Eq>
</And>
</Where>
</Query>
No comments:
Post a Comment