I checked whether the lookup is empry but the plugin does not work for the director field: when I don't edit the text inside it throws the exception. My updated code is the following: EntityReference director = postImage.GetAttributeValue ("director"); if (director == null) throw new InvalidPluginExecutionException(OperationStatus.Failed, "Director is empty!");
↧