Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

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.

*This post is locked for comments

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 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,

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans