Skip to content

Commit

Permalink
HotFix para cuando se califica un propsect sin cuenta
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmeralcivar committed Feb 13, 2024
1 parent ab29c62 commit edb7522
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Core/Handlers/ProspectHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<EntityReference>("p365i_parentaccountid");
}
else
return new EntityReference();
}
else if (entityTarget == "contact")
{
Expand Down

0 comments on commit edb7522

Please sign in to comment.