I found that in some of my code I have the following syntax protecting the plugin from FUBARing. I canβt love God, I donβt remember why I put a conditional expression for EntityReference.
Is Context.InputParameters ["Target"] each EntityReference?
bool goodToGo = Context.InputParameters.Contains("Target") && Context.PrimaryEntityName == "email"; && ( Context.InputParameters["Target"] is Entity || Context.InputParameters["Target"] is EntityReference);
Is it ever anything other than Entity?
source share