0

I want to make a FetchXML query that is using ISNULL like in SQL query.

In SQL

SELECT * FROM Contact WHERE ISNULL(FirstName, '') = ''

Do they have any operators for it in FetchXML?

BSMP
  • 4,596
  • 8
  • 33
  • 44
daniel
  • 320
  • 4
  • 14

1 Answers1

0

Not exactly the same but the below query should give you something to work with.

<fetch mapping="logical">
  <entity name="contact">
    <all-attributes />
    <filter>
      <condition attribute="firstname" operator="null" />
    </filter>
  </entity>
</fetch>
John Rogerson
  • 553
  • 4
  • 12