CAML query with nonexistent field
Posted
by Jason Hocker
on Stack Overflow
See other posts from Stack Overflow
or by Jason Hocker
Published on 2010-05-25T02:49:47Z
Indexed on
2010/05/25
2:51 UTC
Read the original article
Hit count: 406
sharepoint
|caml
We need to have a web service that queries a sharepoint list using CAML, but we do not know what version of the list that we are using. Version introduced a new field we want to use in the query if it is present, but just ignore that otherwise. If I put it in the query on the old version, we get no results. How should I check if the field exists before setting up the query?
© Stack Overflow or respective owner