web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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!

I have the same question (0)
  • 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
    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
    412 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
    133 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans