Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Create Vendor Payment ...
Finance forum
Suggested answer

Create Vendor Payment journal in X++ code

Posted on by 347
Hi Folks,
 
  I was trying to create Vendor Payment Journal entry through code.
 
I got the code but now I'm stuck on how to find OffsetLedgerDimension if I only have main account id from a parameter field??
 
Thanks in advance!!
  • Suggested answer
    Anthony Blake Profile Picture
    Anthony Blake 1,823 Super User 2024 Season 2 on at
    Create Vendor Payment journal in X++ code
    Try:
     
    LedgerDefaulAccountHelper::GetDefaultAccountFromMainAccountRecId(MainAccount::findByMainAccountId(yourMainAccountId));
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Create Vendor Payment journal in X++ code
    Hi,
    Your description is a bit concise, could you provide more detailed information? Would it be convenient for you to share your code so that other experts can view and assist you.
    Best Regards,
    Hana
  • Komi Siabi Profile Picture
    Komi Siabi 12,431 Most Valuable Professional on at
    Create Vendor Payment journal in X++ code
    Can you share the code with us?

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans