OrganizationServiceContext.AddRelatedObject Method (Entity, Relationship, Entity)
Dynamics CRM 2016
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Adds a related entity to the OrganizationServiceContext and creates the link that defines the relationship between the two entities in a single request.
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Parameters
- source
-
Type:
Microsoft.Xrm.Sdk.Entity
Type: Entity. The parent entity that is being tracked by the context.
- relationship
-
Type:
Microsoft.Xrm.Sdk.Relationship
Type: Relationship. The name of the attribute or navigation property that returns the related object based on an association between the two entities.
- target
-
Type:
Microsoft.Xrm.Sdk.Entity
Type: Entity. The related object that is being added.
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright
Community Additions
ADD
Show: