Hi all
Running AX 2012 R3 CU9
I have run into an edge case in my query creation. I'm looking to filter off a number of records, based on the value of two of their fields. One is a journal number, one is a string value which may be blank. I'm looking to filter out the blanks, but only when the journal number matches some criteria
Normally in a basic SQL database I would do this with SQL query:
select * from Table1
where (other criteria here)
and not (field1 = "" && field2 Like "___*");
However, I can't work out how to get the AOT syntax to do this. The closest I've gotten is to know that I can wrap Like in a !() to recreate "not like" but apparently that can't be applied to string values.
I don't know if AX has some kind of workaround for this?
Thanks very much in advance for your help
Cheers
Luke
*This post is locked for comments