📚 SAP Business One SDK Help

UpdateServiceCallStatus Method
See Also  Example
pIServiceCallStatus
The data for the service call status to be updated. The ServiceCallStatus object must contain the key of the object to be updated.

Description

Updates an existing service call status.

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

Syntax

Visual Basic
Public Sub UpdateServiceCallStatus( _
   ByVal pIServiceCallStatus As ServiceCallStatus _
) 

Parameters

pIServiceCallStatus
The data for the service call status to be updated. The ServiceCallStatus object must contain the key of the object to be updated.

Example

Updating a service call status (C#)Copy Code
ServiceCallStatusParams statusParams = callStatusService 
    .GetDataInterface(ServiceCallStatusServiceDataInterfaces.scssServiceCallStatusParams) as ServiceCallStatusParams; 
 
statusParams.StatusId = 9; 
ServiceCallStatus callStatus = callStatusService.GetServiceCallStatus(statusParams); 
 
callStatus.Name = "new Name"; 
callStatusService.UpdateServiceCallStatus(callStatus); 

See Also