SBX - Search With Button

SBX - Forum Post Title

I would like to automate codeunit 13 in a job queue

Microsoft Dynamics NAV Forum

Steve Whyte asked a question on 14 Apr 2019 5:46 PM
My Badges

Question Status

Suggested Answer

Hi:

I understand that codeunit 13 is able to post batch journals (in my case a recurring batch journal).

The problem is I do not know what parameters to set for this codeunit.

Can anyone tell me what parameter I should add if I run this codeunit from job queue.

Also, if codeunit 13 is not the correct code to run recurring batch journal please let me know which codeunit to run.

Steve

Reply
Alfredo Zelaya responded on 15 Apr 2019 7:29 AM
My Badges

Steve

Please don't take this the wrong way........... but have you attempted to run the Job Queue for Codeunit 13 without any parameters in a test environment? You may not need one.

Reply
Steve Whyte responded on 15 Apr 2019 8:29 AM
My Badges

Hi Alfredo:

LOL...No I have not taken your suggestion in a wrong way. The answer to your question is Yes, I have tried it without parameters in a test environment.

Do you know if there is any material or resource which can indicate what parameters (if any) go with running codeunit 13?

Reply
Alfredo Zelaya responded on 15 Apr 2019 8:50 AM
My Badges

You can try this one............ Not really sure I'm bringing you any value:

docs.microsoft.com/.../run-function--codeunit-

Reply
Alfredo Zelaya responded on 15 Apr 2019 9:38 AM
My Badges
Suggested Answer
Teddy Herryanto responded on 15 Apr 2019 3:22 PM
My Badges
Suggested Answer

I don't think you can set parameter for Codeunit 13 in job queue.

Create a new codeunit that filters the rec and call codeunit 13 with the rec.

Then run job queue on the new codeunit.

Reply
Alfredo Zelaya responded on 15 Apr 2019 9:38 AM
My Badges
Suggested Answer
Teddy Herryanto responded on 15 Apr 2019 3:22 PM
My Badges
Suggested Answer

I don't think you can set parameter for Codeunit 13 in job queue.

Create a new codeunit that filters the rec and call codeunit 13 with the rec.

Then run job queue on the new codeunit.

Reply

SBX - Two Col Forum

SBX - Migrated JS