CrmServiceClient.DeleteEntity Method (String, Guid, Guid)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Deletes an entity from the CRM
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Syntax
public bool DeleteEntity(
string entityType,
Guid entityId,
Guid batchId = null
)
Public Function DeleteEntity (
entityType As String,
entityId As Guid,
batchId As Guid
) As Boolean
Parameters
entityType
Type: System.Stringentity type name
entityId
Type: System.Guidentity id
batchId
Type: System.GuidOptional : Batch ID to attach this request too.
Return Value
Type: System.Boolean
true on success, false on failure
See Also
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright