📚 SAP Business One SDK Help

UpdateServiceCallSolutionStatus Method
See Also  Example
pIServiceCallSolutionStatus
The data for the service call solution status to be updated. The ServiceCallSolutionStatus object must contain the key of the object to be updated.

Description

Updates an existing service call solution status.

The data for the service call solution status, including the key of the solution status to be updated, is contained in the ServiceCallSolutionStatus passed to the method. To update a service call solution status, you must first retrieve it using the GetServiceCallSolutionStatus method.

Syntax

Visual Basic
Public Sub UpdateServiceCallSolutionStatus( _
   ByVal pIServiceCallSolutionStatus As ServiceCallSolutionStatus _
) 

Parameters

pIServiceCallSolutionStatus
The data for the service call solution status to be updated. The ServiceCallSolutionStatus object must contain the key of the object to be updated.

Example

Updating service call solution status (C#)Copy Code
ServiceCallSolutionStatusParams solutionStatusParams = solutionStatusService.GetDataInterface(ServiceCallSolutionStatusServiceDataInterfaces 
    .scsssServiceCallSolutionStatusParams) as ServiceCallSolutionStatusParams; 
 
solutionStatusParams.StatusId = 8; 
ServiceCallSolutionStatus solutionStatus = solutionStatusService.GetServiceCallSolutionStatus(solutionStatusParams); 
solutionStatus.Name = "new Name"; 
 
Console.WriteLine("Update a ServiceCall Solution Status with id=" + solutionStatusParams.StatusId); 
 
solutionStatusService.UpdateServiceCallSolutionStatus(solutionStatus); 

See Also