We are working with Dynamics 365 CRM (on-premise) and using a custom front-end developed with ADX.
My issue is that ADX allows a CRM quote or order to be shared with the same user more than once. When this is done, we receive an error message: "Cannot insert duplicate key." (It is my understanding that this is the default Dynamics error).
What I want to do is replace this with a more user-friendly message like: "This order has been already shared with that sales person".
I am looking for the best approach to transform the default error message to the user-friendly message.
Thank you