Caml Query with Lookup field

<Query>
  <Where>
    <Eq>
      <FieldRef Name='Fruit' />
      <Value Type='Lookup'>Grapes</Value>
    </Eq>
  </Where>
</Query>
<Query>
  <Where>
    <Eq>
      <FieldRef Name='Fruit' LookupId='TRUE' />
      <Value Type='Lookup'>15</Value>
    </Eq>
  </Where>
</Query>

Comments

Popular posts from this blog

How to remove app from SharePoint 2013/2016

The model backing the context has changed since the database was created. Consider using Code First Migrations to update the database