I am trying to query Sharepoint with SOAP in Powershell but am running into issues when I add more than 2 fields. What I am wondering is if there is a way to see if any of the 4 fields are Null?
When I execute this query, I get results:
<Query>
<Where>
<Or>
<IsNull>
<FieldRef Name='Field1'/>
</IsNull>
<IsNull>
<FieldRef Name='Field2'/>
</IsNull>
</Or>
</Where>
</Query>
However, when I execute this query, an exception is thrown.
<Query>
<Where>
<Or>
<IsNull>
<FieldRef Name='Field1'/>
</IsNull>
<IsNull>
<FieldRef Name='Field2'/>
</IsNull>
<IsNull>
<FieldRef Name='Field3'/>
</IsNull>
<IsNull>
<FieldRef Name='Field4'/>
</IsNull>
</Or>
</Where>