I have a client that requires a customization to automatically post sales orders on a schedule.
The automated posting is scheduled at night, and the client would want to know in the morning of the next day through a log file what sales orders posted successfully and what did not and what the error message was.
I have figured out the automation part and am calling the sales-post codeunit.
However, the sales-post codeunit aborts when it finds an error and outputs a dialog box.
Is there a way through code to silently post multiple sales orders one by one without bogging down on an error but just simply log it and move on to the next sales order? :?
Any input is greatly appreciated. Thanks!
0
Comments
Post with Job Queue Option is available in NAV2013. Please check.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
So are you saying that by calling post through a job queue, this problem will not occur? If I use a job queue, will I be able to capture the error messages and put them into my own custom table? The custom table is a requirement.
By the way, I am on NAV 2009 R2. Thanks!
Please Upgrade to NAV2013, Post with Job Queue Option is available by default in NAV2013.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
@bbrown: I'll check the report out, thanks!