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 :

How to show multiple error logs and then stop the execution. #ax #dynamics #d365

Krishna Bhardwaj Profile Picture Krishna Bhardwaj 97
Here, I'm going to show how to show multiple errors and then stop the process by code. I required to show multiple errors in the different error logs and then stop the execution after the last error.


boolean haveErrors;
while select * from inventQualityOrderLine
    where inventQualityOrderLine.QualityOrderId == qualityOrderId
{
    error('Error found');  // Display error

    haveErrors = true;

}
if (haveErrors)
{
    throw Exception::error;  // Stop execution

}

Comments

*This post is locked for comments