Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

AOT query range - not null values

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
 
 
  • Srimdax Profile Picture
    Srimdax 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. 
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,149 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?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans