📚 SAP Business One SDK Help

DeleteServiceCallType Method
See Also  Example
pIServiceCallTypeParams
The key of the service call type to be deleted.

Description

Deletes an existing service call type.

The service call type is specified by its key (callTypeID), which is contained in the ServiceCallTypeParams object passed to the method.

Syntax

Visual Basic
Public Sub DeleteServiceCallType( _
   ByVal pIServiceCallTypeParams As ServiceCallTypeParams _
) 

Parameters

pIServiceCallTypeParams
The key of the service call type to be deleted.

Remarks

If the type is linked to a specific service call, it cannot be deleted.

Example

Deleting a service call type (C#)Copy Code
ServiceCallTypeParams callTypeParams = callTypesService.GetDataInterface(ServiceCallTypesServiceDataInterfaces.sctsServiceCallTypeParams) as ServiceCallTypeParams; 
callTypeParams.CallTypeID = 2; 
 
try 

     callTypesService.DeleteServiceCallType(callTypeParams); 

catch (Exception ex) 

     Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 

See Also