IsNull element (Query)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Used within a query to return items that are empty (Null).

  <FieldRef Name = "Field_Name"/>
  <Value Type = "Field_Type"/>
  <XML />

Elements and attributes

The following sections describe attributes, child elements, and parent elements.



Child elements

Parent elements


  • Minimum: 0
  • Maximum: Unbounded


The following query returns cases where the field base type is 1, the ID column equals the Project column, and the Template column is empty. Results are returned in ascending order by Title and then by ID.

          <FieldRef Name="BaseType"></FieldRef>
          <Value Type="Integer">1</Value>
          <FieldRef Name="Project"></FieldRef>
          <Value Type="Integer">
            <ProjectProperty Select="ID"></ProjectProperty>
        <FieldRef Name="Template"></FieldRef>
    <FieldRef Name="Title"></FieldRef>
    <FieldRef Name="ID"></FieldRef>

See also