Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / x++ traverse table rel...
Finance forum
Answered

x++ traverse table relations from CustInvoiceTrans to CustInvoiceLineInterProj?

Posted on by 452
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
    André Arnaud de Cal... 290,524 Super User 2024 Season 2 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
    jt1024 452 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
    Layan Jwei 7,071 Super User 2024 Season 2 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans