📚 SAP Business One SDK Help

AddServiceCallProblemType Method
See Also  Example
pIServiceCallProblemType
The data for the new service call problem type.

Description

Adds a service call problem type.

Syntax

Visual Basic
Public Function AddServiceCallProblemType( _
   ByVal pIServiceCallProblemType As ServiceCallProblemType _
) As ServiceCallProblemTypeParams

Parameters

pIServiceCallProblemType
The data for the new service call problem type.

Return Type

Contains the key (prblmTypID) of the new service call problem type.

Example

Adding a service call problem type (C#)Copy Code
public void Add() 

    ServiceCallProblemType callProblemType; 
 
    callProblemType = callProblemTypesService.GetDataInterface(ServiceCallProblemTypesServiceDataInterfaces.scptsServiceCallProblemType) As ServiceCallProblemType; 
 
    callProblemType.Name = "problem type"; 
    callProblemType.Description = "problem description"; 
 
    try 
    { 
        callProblemTypesService.AddServiceCallProblemType(callProblemType); 
    } 
    catch (Exception ex) 
    { 
        Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); 
    } 

See Also