SharePoint Caml Query - Filter by boolean value

Author: Sebastian Riesner, Published: 6/25/2019 12:44 PM

Sometimes you have to filter a list or library in SharePoint with a caml query and by a boolean value (true or false):

<View><Query><Where><Eq><FieldRef Name='FieldName'/><Value Type='Boolean'>1</Value></Eq></Where></Query></View>

The value can be 1 (= true) or 0 (= false)