Hello,
I have a plugin that triggers upon account creation. However I want to check so that if the Account Type is not equal to 'Preferred Customer', then exit the plugin successfully. Is there a way to force the plugin to exit successfully, without outputting error message or anything disruptive?
Thanks. -tri
var type = targetEntity.Attributes["accountcategorycode"].ToString(); if (type == null) && (type != 'Preferred Customer') { throw new InvalidPluginExecutionException(4, "Successful"); //question is what should be thrown here? We don't want an error message pop up } else { //plugin logic here }