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 :
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,165 Super User 2026 Season 1 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
    303,314 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans