Skip to main content

Notifications

Microsoft Dynamics AX forum
Suggested answer

Relation between VendInvoiceInfoTable and VendInvoiceJour

Posted on by Microsoft Employee

Hi All,

May I know how to link between VendInvoiceInfoTable and VendInvoiceJour? If I have VendInvoiceInfoTable record, how can I get the VendInvoiceJour record?

Thank you.

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,147 on at
    RE: Relation between VendInvoiceInfoTable and VendInvoiceJour

    Check these two methods:

    \Data Dictionary\Tables\VendInvoiceInfoTable\Methods\ledgerVoucher (via source document header)

    \Data Dictionary\Tables\VendInvoiceInfoTable\Methods\findFromVendInvoiceJour (via num, purchid and parmid if it came from a posting)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Relation between VendInvoiceInfoTable and VendInvoiceJour

    What about this relation ?

    SELECT *

    FROM VENDINVOICEJOUR AS vij

    JOIN PURCHTABLE AS pt

    ON vij.PURCHID = pt.PURCHID

    JOIN VENDINVOICEINFOSUBTABLE AS viist

    ON viist.ORIGPURCHID = pt.PURCHID

    JOIN VENDINVOICEINFOTABLE AS viit

    ON viit.PARMID = viist.PARMID and viit.TABLEREFID = viist.TABLEREFID

  • Suggested answer
    UmesH@ Profile Picture
    UmesH@ 810 on at
    RE: Relation between VendInvoiceInfoTable and VendInvoiceJour

    Hi sanme,

    if you want Create unique link between those two table then you can create your Own Column and linked it.

    you want to add Field in That 2 tables.

    Thanks.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Relation between VendInvoiceInfoTable and VendInvoiceJour

    Hi Jignesh,

    I unable to link to VendInvoiceJour using PostingProfile. It is quite general, I need unique link. Anyway, thank you.

    Anyone can help?

    Thank you.

  • UmesH@ Profile Picture
    UmesH@ 810 on at
    RE: Relation between VendInvoiceInfoTable and VendInvoiceJour

    May be you can Check by PostingProfile

    VENDINVOICEJOUR.POSTINGPROFILE = VENDINVOICEINFOTABLE.POSTINGPROFILE

    Thanks,

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans