How to throw error from commerce runtime to POS client
Song Nghia - Technical Consultant
In this tutorial, I'll show you how to throw error, warning from CRT to POS Client
Step 1. In commerce runtime, use throw exception type: DataVaidationException like:
throw new DataValidationException(DataValidationErrors.Microsoft_Dynamics_Commerce_Runtime_UnableToOpenShift, "Could not open shift. It could be this terminal did Z-Reading Report in this day");
"Could not open shift. It could be this terminal did Z-Reading Report in this day" => it will show in event viewer
Step 2. You can get languages text id inside parameter from setup 1. Just f12 type of data validation exception to know id of languages text.