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

Definition

Issues an Associate Request to CRM.

public:
 virtual void Associate(System::String ^ entityName, Guid entityId, Microsoft::Xrm::Sdk::Relationship ^ relationship, Microsoft::Xrm::Sdk::EntityReferenceCollection ^ relatedEntities);
public void Associate (string entityName, Guid entityId, Microsoft.Xrm.Sdk.Relationship relationship, Microsoft.Xrm.Sdk.EntityReferenceCollection relatedEntities);
abstract member Associate : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection -> unit
override this.Associate : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection -> unit

Parameters

entityName
String String String

Entity Name to associate to

entityId
Guid Guid Guid

ID if Entity to associate to

relationship
Relationship Relationship Relationship

Relationship Name

Remarks

This method is a wrapper for IOrganizationService.Associate(String, Guid, Relationship, EntityReferenceCollection).

Applies to