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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Create Vendor Payment journal in X++ code

(0) ShareShare
ReportReport
Posted on by 672
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!!
  • Komi Siabi Profile Picture
    13,253 Most Valuable Professional on at
    Can you share the code with us?
  • Hana Xue Profile Picture
    Microsoft Employee on at
    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
  • Suggested answer
    Anthony Blake Profile Picture
    3,259 Super User 2026 Season 2 on at
    Try:
     
    LedgerDefaulAccountHelper::GetDefaultAccountFromMainAccountRecId(MainAccount::findByMainAccountId(yourMainAccountId));

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 543 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 415 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 188

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans