19 апреля 2012 г. 14:47
I have a plugin that has a async post operation event which associates two custom entities together. I have a try catch in the post operation but since it its asynchronous, I do not see the error if an exception in that class is called. Other than logging to the event log or database, is there a way I can actually see the exception dialog box when an asynchronous plugin fails to perform the action ?
19 апреля 2012 г. 14:52Модератор
No, in case of Asyn plugin you have to log error somewhere for later use, you can't prompt it.
- Предложено в качестве ответа Mahender PalMVP, Moderator 19 апреля 2012 г. 14:52
19 апреля 2012 г. 18:58If you use the ITracecingService Trace function in conjunction with your async plugin you should be able to see the error results in the system jobs view in CRM.
- Предложено в качестве ответа Scott DurowMicrosoft Community Contributor, Editor 19 апреля 2012 г. 19:35
19 апреля 2012 г. 21:25
Utilizing the ITracingService, for an asynchronous registered plug-in, the tracing information is shown in the Details area of the System Job form in the Web application. The amount and nature of this information is up to you as a developer to code into your plug-ins. (Info here).
I hope this helps. If my response answered your question, please mark the response as an answer and also vote as helpful. Michael Mayo