📚 SAP Business One SDK Help

DeleteServiceCallStatus Method
See Also  Example
pIServiceCallStatusParams
The key of the service call status to be deleted.

Description

Deletes an existing service call status.

The service call status is specified by its key (statusID), which is contained in the ServiceCallStatusParams object passed to the method.

Syntax

Visual Basic
Public Sub DeleteServiceCallStatus( _
   ByVal pIServiceCallStatusParams As ServiceCallStatusParams _
) 

Parameters

pIServiceCallStatusParams
The key of the service call status to be deleted.

Remarks

If the status is system defined or is linked to a specific service call, the status cannot be deleted.

A status is system defined if the Locked field in the OSCS table is set to Y.

Example

Deleting a service call status (C#)Copy Code
ServiceCallStatusParams statusParams = callStatusService 
    .GetDataInterface(ServiceCallStatusServiceDataInterfaces.scssServiceCallStatusParams) as ServiceCallStatusParams; 
statusParams.StatusId = 11; 
callStatusService.DeleteServiceCallStatus(statusParams); 

See Also