CrmOrganizationServiceContext.Associate Method (String, Guid, Relationship, EntityReferenceCollection)

 

Applies To: Dynamics CRM 2015

Creates a link between records (entity instances). (Developer Extensions)

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public void Associate(
    string entityName,
    Guid entityId,
    Relationship relationship,
    EntityReferenceCollection relatedEntities
)
public:
virtual void Associate(
    String^ entityName,
    Guid entityId,
    Relationship^ relationship,
    EntityReferenceCollection^ relatedEntities
) sealed
abstract Associate : 
        entityName:string *
        entityId:Guid *
        relationship:Relationship *
        relatedEntities:EntityReferenceCollection -> unit
override Associate : 
        entityName:string *
        entityId:Guid *
        relationship:Relationship *
        relatedEntities:EntityReferenceCollection -> unit
Public Sub Associate (
    entityName As String,
    entityId As Guid,
    relationship As Relationship,
    relatedEntities As EntityReferenceCollection
)

Parameters

  • entityName
    Type: System.String

    Type: String. The logical name of the entity specified in the entityId parameter.

  • entityId
    Type: System.Guid

    Type: Guid. The ID of the record to which the related records will be associated.

Implements

IOrganizationService.Associate(String, Guid, Relationship, EntityReferenceCollection)

Remarks

Extends the core implementation of the Associate method.

See Also

CrmOrganizationServiceContext Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Developer extensions context object model (Dynamics CRM 2015)

Return to top

© 2017 Microsoft. All rights reserved. Copyright