OrganizationWebProxyClient.Associate Method (String, Guid, Relationship, EntityReferenceCollection)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Creates a link between records.
Namespace: Microsoft.Xrm.Sdk.WebServiceClient
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public void Associate(
string entityName,
Guid entityId,
Relationship relationship,
EntityReferenceCollection relatedEntities
)
Public Sub Associate (
entityName As String,
entityId As Guid,
relationship As Relationship,
relatedEntities As EntityReferenceCollection
)
Parameters
entityName
Type: System.StringType: String. The logical name of the entity specified in the entityId parameter.
entityId
Type: System.GuidType: Guid. The ID of the record to which the related records will be associated.
relationship
Type: Microsoft.Xrm.Sdk.RelationshipType: Relationship. The name of the relationship to be used to create the link.
relatedEntities
Type: Microsoft.Xrm.Sdk.EntityReferenceCollectionType: EntityReferenceCollection. A collection of entity references (references to records) to be associated.
Implements
IOrganizationService.Associate(String, Guid, Relationship, EntityReferenceCollection)
Remarks
The core implementation of the Associate method. For more information, see IOrganizationService.Associate.
See Also
OrganizationWebProxyClient Class
Microsoft.Xrm.Sdk.WebServiceClient Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright