web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get Vendor account for a LedgerJournalTrans record

(0) ShareShare
ReportReport
Posted on by 2,470

Hi

I am looking to get the vendor for the line items of an NPO - I don't see any reference in the LedgerJournalTrans table - and in the Invoice Journal screen - using the "Personalize" option I see that vendor is "LedgerJournalTrans(LedgerJournalTrans).LedgerDimension" - but I don't understand that - I think that might be related to the dropdown?

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at
    RE: AX12 - Get Vendor account for a LedgerJournalTrans record

    Hi

    The Vendor is store on LedgerDimension field as Recid.

    On LedgerJournalTrans Table, you can use the "accountDisplay" method or "accountNameFind" for the description.

  • Suggested answer
    Amir Nazim Profile Picture
    5,994 on at
    RE: AX12 - Get Vendor account for a LedgerJournalTrans record

    VendTable::find(DimensionStorage::ledgerDimension2AccountNum(_dimensionDynamicAccount))
    _dimensionDynamicAccount is the ledgerdimension recid

  • Suggested answer
    Christiaan Profile Picture
    380 on at
    RE: AX12 - Get Vendor account for a LedgerJournalTrans record

    Journal lines use dimension values.

    To convert dimension records use the DimensionStorage Class methods. for example:

    find the Vendor AccountNum corresponding to ledgerdimension (recid) = DimensionStorage::ledgerDimension2AccountNum(LedgerDimension)

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Get Vendor account for a LedgerJournalTrans record

    to get account number for vendor or customer or etc use LedgerJournalTrans.accountDisply().

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#1
Community Member Profile Picture

Community Member 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans