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 :
Small and medium business | Business Central, N...
Suggested Answer

How to post Output journal lines with Job Queue?

(0) ShareShare
ReportReport
Posted on by 2

Hello, I tried to make a job queue that automatically posts the lines in the output journal. 

I think I have to use code unit 23 Item Journal Post Batch for thisJQ.JPG


But it gives an error in the log entries when executed: Record(472) is not compatible with Codeunit.Run(Record(83))

Do I need to give the job queue a certain parameter string? How should I format that string? 

Or do you need to program a complete new code unit?

Thank you in advance!

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    I am not a programmer but some things to consider here:

    1. Journal Template Name = Name you setup for Output Journals

    2. Batch Name = Name you have setup for Output Batches

    I will defer to others on the community who are programmers to answer this.

    Thanks,

    Steve

  • BrutusG Profile Picture
    2 on at

    Thx for your reply. How do I give the right syntax in the parameter field for the Journal template name and batch..

  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    There was some discussion on this topic in our NAV forums a few years back.  You would need to create a custom extension to accomplish this.  Here is the thread:

    community.dynamics.com/.../392213

  • Suggested answer
    Bilal Haider Profile Picture
    487 on at

    Hi,

    You need to create a new  code unit to post item journal using Job Queue just like we have for Sales and Purchases available out of the box.

  • Suggested answer
    JAngle Profile Picture
    159 on at

    This is a feature for the general journal so perhaps taking the source code for that and swapping it for item journal is a worthwhile pursuit. If that is too long winded then create a report as you know that will generate all the lines for you and add this to the onaftergetrecord CODEUNIT.RUN(CODEUNIT::"Item Jnl.-Post",ItemJrnlLineVariable);

    If you do it with jus a codeunit then you have to build up the data in a loop and use the same line I’ve mentioned. This is a good resource for the report method: https://youtu.be/bTPWakN0Ue0

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 July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 711 Super User 2026 Season 2

#2
Teagen Boll Profile Picture

Teagen Boll 377 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 367 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans