Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Create and post Ledger journal using X++

Posted on by 375

Hello every one how could i create and post general journal using x++ between ledger and subledger in D365

  • AhmedSaeed Profile Picture
    AhmedSaeed 375 on at
    RE: Create and post Ledger journal

    Hi ludwig

    i need to post a journal between customer and Ledger account and also between bank and customer for some cases in my business

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Create and post Ledger journal

    Hello AhmedSaeed,

    What transaction do you want to post in a GL journal?

    Those journals are usually not used to post subledger transactions.

    Can you elaborate what you want to achieve with those journals?

    Many thanks and best regards,

    Ludwig

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: Create and post Ledger journal

    Hi Ahmed,

    Please check this post for creating general journal using X .

    You can use this code for posting journals -

    public void postJournal(LedgerJournalTable ledgerJournalTable)
    { 
        LedgerJournalCheckPost jourPost;
        jourPost = LedgerJournalCheckPost::newLedgerJournalTable(ledgerJournalTable, NoYes::Yes);
        jourPost.runOperation();
    }

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans