/CAML_PersonID.xml Secret
Last active
August 29, 2015 14:20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query> | |
<Where> | |
<Eq> | |
<FieldRef Name="FieldName" LookupId="TRUE" /> | |
<Value Type="Integer">1</Value> | |
</Eq> | |
</Where> | |
</Query> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPQuery query = new SPQuery | |
{ | |
Query = string.Format(@"<Where> | |
<Eq> | |
<FieldRef Name='{0}' LookupId='TRUE' /> | |
<Value Type='Integer'>{1}</Value> | |
</Eq> | |
</Where>", "FieldName", "1"), | |
RowLimit = 10, | |
ViewFields = string.Concat("<FieldRef Name='FieldName' />", | |
"<FieldRef Name='FieldName' />") | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment