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 185
Hello,
 
X++ question:
If I wanted to access the related CustInvoiceLineInterProj.ProjId from a CustInvoiceTrans record, how would I do that?
 
- Jim
  • André Arnaud de Calavon Profile Picture
    293,041 Super User 2025 Season 1 on at
    x++ traverse table relations from CustInvoiceTrans to CustInvoiceLineInterProj?
    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?
  • Verified answer
    jt1024 Profile Picture
    185 on at
    x++ traverse table relations from CustInvoiceTrans to CustInvoiceLineInterProj?
    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

  • Layan Jwei Profile Picture
    7,722 Super User 2025 Season 1 on at
    x++ traverse table relations from CustInvoiceTrans to CustInvoiceLineInterProj?
    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,041 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,856 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans