We're using CRM 2013 SP1 RU1 On Premises, and I need to throw an exception in a plugin when an issue occurs. I'm using InvalidPluginExecutionException which works as expected, but I'd like the error to be logged somewhere. The plugin is
running as PreOperation and Synchronous, and per this article I thought the error would be saved to the Application Log in the Event Log:
https://msdn.microsoft.com/en-us/library/Gg334685%28v=crm.6%29.aspx
But this doesn't seem to be the case. I don't want to depend on the user to send me the downloaded log if an issue comes through. Also I understand the transaction is rolled back so I can't write to a log entity. So how can I determine
or log when an exception is thrown using InvalidPluginExecutionException ?
Thank you.