Skip to main content

Notifications

Announcements

No record found.

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 493
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 2,317 Super User 2025 Season 1 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,772 Most Valuable Professional on at
    Create Vendor Payment journal in X++ code
    Can you share the code with us?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans