Dela via


OrganizationWebProxyClient.Disassociate Method (String, Guid, Relationship, EntityReferenceCollection)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Deletes a link between records.

Namespace:   Microsoft.Xrm.Sdk.WebServiceClient
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

public void Disassociate(
    string entityName,
    Guid entityId,
    Relationship relationship,
    EntityReferenceCollection relatedEntities
)
Public Sub Disassociate (
    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 from which the related records will be disassociated.

Implements

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

Remarks

The core implementation of the Disassociate method. For more information, see IOrganizationService.Disassociate.

For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle exceptions in your code.

See Also

OrganizationWebProxyClient Class
Microsoft.Xrm.Sdk.WebServiceClient Namespace
Troubleshooting and error handling
Use the Organization Service to read and write data or metadata

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright