Closed FlandersBurger closed 3 years ago
@FlandersBurger can you please send me the request payload that is being sent by DynamicsWebApi?
@FlandersBurger seems like you are specifying an incorrect navigation property. For Owning Team you need to use: owningteam
.
<NavigationProperty Name="owningteam" Type="mscrm.team" Nullable="false" Partner="lead_owning_team">
<ReferentialConstraint Property="_owningteam_value" ReferencedProperty="teamid"/>
</NavigationProperty>
<NavigationProperty Name="ownerid" Type="mscrm.principal" Nullable="false" Partner="owner_leads">
<ReferentialConstraint Property="_ownerid_value" ReferencedProperty="ownerid"/>
</NavigationProperty>
<NavigationProperty Name="owningbusinessunit" Type="mscrm.businessunit" Nullable="false" Partner="business_unit_leads">
<ReferentialConstraint Property="_owningbusinessunit_value" ReferencedProperty="businessunitid"/>
</NavigationProperty>
I am pretty sure you could set ownerid
without "team" suffix.
I'm trying to set the [Team] owner of a lead I'm creating but it is throwing an error when doing so. It's probably a syntax error but I'm finding very little help online.
Here's the error I receive: