Skip to main content
Dynamics 365 Community / Forums / Finance forum / x++ traverse table rel...
Finance forum
Answered

x++ traverse table relations from CustInvoiceTrans to CustInvoiceLineInterProj?

editSubscribe (1) ShareShare
ReportReport
Posted on by 441
Hello,
 
X++ question:
If I wanted to access the related CustInvoiceLineInterProj.ProjId from a CustInvoiceTrans record, how would I do that?
 
- Jim
Attachments
  • Andre Arnaud de Calavon Profile Picture
    Andre Arnaud de Cal... 283,166 Super User 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 441 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 2,839 Super User 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

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,166 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,703 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans