Post Ledger Journal using X++ in D365 Operations | CloudFronts

Post Ledger Journal using X++ in D365 Operations

Introduction:

In this blog article, we will see how we can post the journal by using code.

How to do?

Create a new method and write below code. In this code you declare object of Class ‘LedgerJournalCheckPost’. This class will use journal buffer and post it.

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

Share Story :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close