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

x++ traverse table relations from CustInvoiceTrans to CustInvoiceLineInterProj?

(1) ShareShare
ReportReport
Posted on by 197
Hello,
 
X++ question:
If I wanted to access the related CustInvoiceLineInterProj.ProjId from a CustInvoiceTrans record, how would I do that?
 
- Jim
I have the same question (0)
  • Layan Jwei Profile Picture
    8,112 Super User 2025 Season 2 on at
    Hi jt024,
     
    I just looked quickly at the table.
    CustInvoiceLineInterProj has a relation with CustInvoiceLine(CustInvoiceLineInterProj.CustInvoiceLine== CustInvoiceLine.RecId)
     
    And CustInvoiceLine has relation with CustInvoiceTable(CustInvoiceLine.ParentRecId=CustInvoiceTable.RecId)
     
    And CustInvoiceTable has relation with CustInvoiceJour based on InvoiceId, NumberSequenceGroup and InvoiceDate
     
    And from custInvoiceJour you can relate to custInvoiceTrans
     
    I don't have data in my devBox to confirm the line to line relation without going to header table(if there is one)
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Verified answer
    jt1024 Profile Picture
    197 on at
    I think I see what you're saying, they relate like this:




     












































     But I also found, or maybe this is what you meant? CustInvoiceLine related to CustInvoiceTrans as shown in the lower left. Credit goes to Nenad Krantic at Docentric forum team: Docentric forum link where I cross posted this question as it related to their D365 custom functions

  • André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at
    Hi Jim,
     
    Is your question fully answered with help from the answer on the other forum? If so, can you mark the reply with the correct answer?

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 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans