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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Table relations doesn't work as expected in AOT query

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I created an AOT query for one table say table C that have to relations. one is a foreign key relation with table A and the second one is defined using two relations on Table B. Table B is also linked to table A using the same foreign key relation. let's say now I have two lookups on table C Lookup 1 and lookup 2.

Depending on the relation lookup 2 is filtered depending on the value of lookup 1. But for the same when I create and an AOT query and add ranges lookup 1 works fine but lookup 2 doesn't filter and shows all the records in the table.

The same thing is working correctly in another environment and I have compared everything but cannot see any difference. Any ideas?

Regards,

HA

*This post is locked for comments

I have the same question (0)
  • dynamics developer Profile Picture
    2 on at

    6406.2.JPG

    The table filters but the query doesn't

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Haris Adil,

        I also faced this kind of issues initially, you can re create your query and try add your query in form.

    Thanks

    Suresh

  • dynamics developer Profile Picture
    2 on at

    Hi Suresh,

    If I had needed it on a form then I can easily override the lookup method. I need this to work on the query object as I will expose this to the user to filter the query using the select button.

    I know if I create a 1:1 join to the child table it will work but the issue is the same query is working fine in another environment. I compared all the system objects and MS hotfixes everything is same. I have been looking all day but couldn't figure out why it is working on the other environment but not on this one. I have tried recreating the table and relations and query but to no use.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans