Quantcast
Channel: CRM Development Forum
Viewing all articles
Browse latest Browse all 888

Get errorcode of InvalidPluginExecutionException

$
0
0

How can i get the errorcode of my InvalidPluginExecutionException in a catch statement? The errorcode of the FaultException is not equal to the errorcode of the InvalidPluginExecutionException.

public InvalidPluginExecutionException ( OperationStatus status, int errorCode, string message)

try
{...}
catch (FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault> ex)
{
 var errorcode = ex.Detail.ErrorCode;
}


Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>