Click or drag to resize
WebCrmApiDeleteLinkedData Method
Deletes all linked data for the specified entity type.

Namespace: dk.webCRM.ApiSync.WebService
Assembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntax
public DeleteLinkedDataResult DeleteLinkedData(
	DataEntityType entityType
)

Parameters

entityType
Type: dk.webCRM.ApiSync.BusinessLayer.EnumsDataEntityType
Entity type.

Return Value

Type: DeleteLinkedDataResult
Returns error status and the count of the deleted records.
Examples
// Login and get a webservice ticket
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);

// Delete linked data
DeleteLinkedDataResult result = proxy.DeleteLinkedData(ticket, DataEntityType.Persons);
See Also