Post a pick list journal through X++ code

Written in

by

Many times we are required to post a pick list journal through X++ code. Sometimes developers fear about how lengthy the code will be to post a journal but it\’s just a 3 lines code.
The following code can be used to posts a pick list journal.
You should have JournalId which is required to be posted. in this case i have used table object _record which holds journalId

ProdJournalCheckPostBOM prodJournalCheckPostBOM;
;
ProdJournalCheckPostBOM = ProdJournalCheckPostBOM::newPostJournal(_record.JournalId,false);

ProdJournalCheckPostBOM.run();

Cheers….

Leave a comment

Wait, does the nav block sit on the footer for this theme? That's bold.

Brewing thought

Explore world of Microsoft Dynamics 365

Explore the style variations available. Go to Styles > Browse styles.