Hi everyone,
Is there a way to detect (by the code) that codeunit 80 did not complete successfully?
Of course, I'll get an error message when the order/invoice is not posted, but I want to be able to detect by code that the codeunit stopped because I have a block of code to execute in case of unsuccessful posting...
I thought of using IF SalesPost.RUN THEN but in this case it will run in a batch mode, I am not able to get error messages anymore...
Any ideas?
Thanks in advance
Answers
IF NOT SalesPost.RUN THEN
Message('%1',GETLASTERRORTEXT);
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks.
But isn't there any other way to do it, without switching to the IF THEN instruction?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
OK Thanks again
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n