📚 SAP Business One SDK Help

DeleteServiceCallProblemType Method
See Also  Example
pIServiceCallProblemTypeParams
The key of the service call problem type to be deleted.

Description

Deletes an existing service call problem type.

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

Syntax

Visual Basic
Public Sub DeleteServiceCallProblemType( _
   ByVal pIServiceCallProblemTypeParams As ServiceCallProblemTypeParams _
) 

Parameters

pIServiceCallProblemTypeParams
The key of the service call problem type to be deleted.

Remarks

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

Example

Deleting a service call problem type (C#)Copy Code
public void Delete() 

    ServiceCallProblemTypeParams callProblemTypeParams = callProblemTypesService.GetDataInterface(ServiceCallProblemTypesServiceDataInterfaces.scptsServiceCallProblemTypeParams) as ServiceCallProblemTypeParams; 
    callProblemTypeParams.ProblemTypeID = 3; 
 
    try 
    { 
        callProblemTypesService.DeleteServiceCallProblemType(callProblemTypeParams); 
    } 
    catch (Exception e) 
    { 
        PrintExceptionMessage(e); 
    } 

See Also