CrmServiceClient.DeleteEntityAssociation(String, Guid, String, Guid, String, Guid) CrmServiceClient.DeleteEntityAssociation(String, Guid, String, Guid, String, Guid) CrmServiceClient.DeleteEntityAssociation(String, Guid, String, Guid, String, Guid) Method

Definition

Removes the Association between 2 entity items where an M2M Relationship Exists.

public bool DeleteEntityAssociation (string entityName1, Guid entity1Id, string entityName2, Guid entity2Id, string relationshipName, Guid batchId = null);
member this.DeleteEntityAssociation : string * Guid * string * Guid * string * Guid -> bool
Public Function DeleteEntityAssociation (entityName1 As String, entity1Id As Guid, entityName2 As String, entity2Id As Guid, relationshipName As String, Optional batchId As Guid = null) As Boolean

Parameters

entityName1
String String String

Entity on one side of the relationship

entity1Id
Guid Guid Guid

The Id of the record on the first side of the relationship

entityName2
String String String

Entity on the second side of the relationship

entity2Id
Guid Guid Guid

The Id of the record on the second side of the relationship

relationshipName
String String String

Relationship name between the 2 entities

batchId
Guid Guid Guid

Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately

Returns

true on success, false on fail

Remarks

Applies to