Forum Discussion
CAML Query with two conditions not working
- Nov 15, 2019
Hi Frank,
Not sure which version of SharePoint you are usingQuery looks OK for me ,AND condition wont work.
Make sure you use OR condition,However we can design the CAML Query using the UI Tools or google with CAML Query Builder /CAML Designer
here is the link
https://www.biwug.be/resources
I hope this works for Sharepoint online too,just check it.
Hi Frank,
Not sure which version of SharePoint you are usingQuery looks OK for me ,AND condition wont work.
Make sure you use OR condition,However we can design the CAML Query using the UI Tools or google with CAML Query Builder /CAML Designer
here is the link
https://www.biwug.be/resources
I hope this works for Sharepoint online too,just check it.
O365Developer THX for quick reply. I am sorry I did not mention wich version of SharePoint I am using. It is SharePoint Online, and I was thinking that the highlitetd webpart in Sharepoint Online is not supporting two CAML conditions. I have seen a lot with SharePoint through the years, so I would not be surprised ![]()
I will try your suggestion and use the Or function instead.
/Frank