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, ...
Unanswered

Issues with add table relations in query forms

(0) ShareShare
ReportReport
Posted on by 200
I have a table ServiceTable, which among other information has a field of type CustAccount
I have another table GoodCustomers with one field Custaccount
I have create a table relation between the tables at the ServiceTable
Validation=No
Cardinality = ZeroOne
Related Table Cardinality = ZeroOne
Field from serviceTable = field from GoodCustomers
I have a class HandleServiceTable with a initquery method where the table ServiceTable is added as the only datasource
The class is a contract class with attribute DataContractAttribute and it implements SysoperationValidatable, SysOperationInitializable
when I run this class I can filter fields from servicetable.
When I use Joins i can see my servicetable.
I mark it and use add table Join
I can see my table GoodCustomers, I select it and use select
The table is added to the query as expected.
I execute the class and I get the expected result - only servicetable records where the field CustAccount exists in table goodCustomers are handled.
I execute the class HandleServiceTable again
I can still see that my goodcustomers table is added to the query, But I can't remove it. The function remove table join is greyed out
I have another Class - Change status which is created with a querybuild method where the servicetable is added as the only table.
When I start this class my table goodcustomers is added to the query automatically. When I use records to include I can see that the table goodcustomers is included. 
I look at the join and can see that the table is added to the query, and I  can remove it. 
I return to my first class HandleServiceTable.
Here I also can see that my goodcustomers table is removed.
I have discovered that if I create a query in AOT and use it it works as expected.
can anyone point me in a direction of solving this issue, so I can remove the added table relation?
I have the same question (0)
  • ErikKornerup Profile Picture
    200 on at
    RE: Issues with add table relations in query forms

    I have now tried with 2 customized tables (Table1 and Table2) where I have set the Validation to No.

    I is still not possible to remove the added table

  • WillWU Profile Picture
    22,361 on at
    RE: Issues with add table relations in query forms

    Hi partner,

    Please check the old thread:

    community.dynamics.com/.../263786

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,333

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 681 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans