diff --git a/Core/Handlers/ProspectHandler.cs b/Core/Handlers/ProspectHandler.cs index d7dc56f..20610c0 100644 --- a/Core/Handlers/ProspectHandler.cs +++ b/Core/Handlers/ProspectHandler.cs @@ -81,8 +81,12 @@ private EntityReference CreateEntityFromProspect(Entity prospect, EntityReferenc _tracingService.Trace("Account added to collection"); return account.ToEntityReference(); } - else + else if(prospect.Contains("p365i_parentaccountid")) + { return prospect.GetAttributeValue("p365i_parentaccountid"); + } + else + return new EntityReference(); } else if (entityTarget == "contact") {