Hello,
I have an sync plugin for sending date to another system, and I create an new entity new_log to log the data sent or exception.
the main logical is that
try
{
logCenter.Init(crmservice)//to init logcenter by passing crm org service to it
SendData();
logCenter.Trace("OK","blablabal");
}catch(ex)
{
logCenter.Trace("Failed","blablabal");
throw new InvalidPluginExecutionException();
}
the problem is that as the plugin is registered on sync mode, when there is an exception, the log can not be created by logCenter, I think it was created but then was rollback by the plugin? Do you have any idea if I want to write the log by create a new crm record?
will it be OK if I make a new ACTION dedicated for the log?
Thanks
*This post is locked for comments
I have the same question (0)