Tuesday, November 29, 2016

CAML, get all list items where text field contains a value?

Server Object Model:


query.Query = "<Where><Contains><FieldRef Name="Name"/><Value Type="Text">" + "YourValue" + "/Value></Contains></Where>";




Client Object Model:

"<Query><Where><Contains><FieldRef Name="Name"/><Value Type="Text">" + "YourValue" + "/Value></Contains></Where></Query>";

No comments:

Post a Comment