web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

AOT query range - not null values

(0) ShareShare
ReportReport
Posted on by 338
Hi Team,
 
I have created AOT query and not through code and I wanted to add range where values showing null values should be displayed.
 
Example
 
Table1
 
Custid name recid
1            A       56312567
2            B      56312568
 
Table2
 
Refid                  Num     recid
56312568            100    56312988
56312568             200   56312989
 
Created entity
 
Tabe1 outer join table2 with Recid and Refid
 
Output
 
Entity
 
Name Num  refid
A        Null   Null
B         100     56312568             
B          200     56312568             
 
Now I dont want to display records which show with Null.
 
Please let me know function to use in Entity range or AOT Query Range and not with X++ code
 
Tried providing Value for that field with below values which did not work
sysquery::valueEmptyString()
!= //  
!= /NULL/
NOT NULL
IS NOT NULL
 
 
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    236,570 Most Valuable Professional on at
    AOT query range - not null values
    Dynamics AX doesn't have nullable primitive types. For example, if RefId is a RecId reference, i.e. an Int64 value, it'll never contain null. If it's empty, it contains zero.

    In your particular case, don't you simply want to use an inner join instead of an outer join?
  • Srimdax Profile Picture
    338 on at
    AOT query range - not null values
    Thanks Drab for quick reply I have just given simple example to showcase but I need it as outer join for data entity purpose. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 835 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans