I'm trying to execute a query (Microsoft.Dynamics.BusinessConnectorNet.ExecuteStmt) in C# via the BusinessConnector (ax2012) to find records where a particular field has a blank/empty string value. Currently i'm trying to pass:
select forupdate * from axTbl_0 where axTbl_0.QuotationId == ('QUOTE00019358') && axTbl_0.SectionID == ('');
...But I am getting an "Unable To Compile Statement" error due to the "== ('')" part of the query. I've also tried "is null" with the same results. I cannot find the syntax anywhere (these forums or via google) as how to filter to only records where a particular field value is blank. I know i can pull back all the records and iterate thru them in C# to find the records with blank values, but this isn't efficient.
Any help would be appreciated, Thank in advance!
*This post is locked for comments
I have the same question (0)