📚 SAP Business One SDK Help

AddServiceCallType Method
See Also  Example
pIServiceCallType
The data for the new service call type.

Description

Adds a service call type.

Syntax

Visual Basic
Public Function AddServiceCallType( _
   ByVal pIServiceCallType As ServiceCallType _
) As ServiceCallTypeParams

Parameters

pIServiceCallType
The data for the new service call type.

Return Type

Contains the key (callTypeID) of the new service call type.

Example

Adding a service call type (C#)Copy Code
ServiceCallType callType = callTypesService.GetDataInterface(ServiceCallTypesServiceDataInterfaces.sctsServiceCallType) as ServiceCallType; 
 
callType.Name = "a new call type"; 
callType.Description = "description for this type"; 
 
try 

     callTypesService.AddServiceCallType(callType); 

catch(Exception ex) 

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

See Also