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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to find relation in tables?

(0) ShareShare
ReportReport
Posted on by 25

I am new in AX7. I want to know how can we find relations between two tables which can be used for creating a Query. 

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    In AOT you can find Relations node in the table definiiton. It's defined from child to parent, for example from SalesLine to SalesTable.

  • Ashish020996 Profile Picture
    25 on at

    Thanks Nikolaos,

    However, I need a relation between PurchLine and LogisticsPostalAddress. How can I set that?

    I need to display Address in front-end.

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    That works exactly the same way!

    Go to PurchLine -> Relations and you will find a relation named DeliveryPostalAddress.

  • Ashish020996 Profile Picture
    25 on at

    How can I use it? I can only see,

    PurchLine.=LogisticsPostalAddress.

    What should I use after PurchLine and LogisticsPostalAddress?

    Can you please help me here.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Right click PurchLine table - Open in designer. Now you can see the properties of the relation, and all the fields that are part of the relation.

  • Ashish020996 Profile Picture
    25 on at

    I really don't have any idea on this. There are no specific relation properties which are similar in both tables.

  • Verified answer
    WillWU Profile Picture
    22,361 on at

    Hi Ashish,

    You can see the relation between these two tables is PurchLine.DeliveryPostAddress==LogisticsAddress.RecId.

    You can customize the relation between two tables by setting the properties of the relation.

     pastedimage1571039633069v1.png

    Best regards,

    Will

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    The relation is not defined in both tables, only in the child table, like I already mentioned.

    Are you now able to find the information?

  • Ashish020996 Profile Picture
    25 on at

    I want to create a relation between these two tables. Output must be "address" of selected PO. How can I set this relation? Please assist me. Got the point of relation. I am new in this AX7 domain. Please help!

    I need a relation between these two tables. I am creating a Report and Output has to be Address of data that I have selected in PO. 

    New in AX7. Please assist me here. What can be done if I only need address of selected PO.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Are you sure it was not already explained to you?
    We have shared you a general process how you can find table relations in AOT. In addition to that, the exact relation between PurchLine and LogisticsPostalAddress was shared to you.

    Could you please read through all messages once again, and see if you find the information in there.

    Also, if your issue is resolved, could you please mark all helpful answer(s) as verified. Thanks!

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans