CrmServiceClient.DeleteEntityAssociation Method
Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online
Removes the Association between 2 entity items where an M2M Relationship Exists.
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Syntax
'Declaration
Public Function DeleteEntityAssociation ( _
entityName1 As String, _
entity1Id As Guid, _
entityName2 As String, _
entity2Id As Guid, _
relationshipName As String, _
<OptionalAttribute> Optional batchId As Guid = Nothing _
) As Boolean
public bool DeleteEntityAssociation (
string entityName1,
Guid entity1Id,
string entityName2,
Guid entity2Id,
string relationshipName,
[OptionalAttribute] Guid batchId
)
Parameters
- entityName1
Entity on one side of the relationship
- entity1Id
The Id of the record on the first side of the relationship
- entityName2
Entity on the second side of the relationship
- entity2Id
The Id of the record on the second side of the relationship
- relationshipName
Relationship name between the 2 entities
- batchId
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
Return Value
true on success, false on fail
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)
Target Platforms
Windows 98,Windows 2000,Windows 2000 Server,Windows CE,Windows Server 2008,Windows 98 Second Edition,Pocket PC,Smart Phone,Windows Server 2003,Windows XP Professional,Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions), ,Windows 8 (All Versions)
See Also
Reference
CrmServiceClient Class
CrmServiceClient Members
Microsoft.Xrm.Tooling.Connector Namespace
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.