📚 SAP Business One SDK Help

Delete Method
See Also  Example

Description

Deletes the current line.

Returns a result value that indicates success or failure.

Syntax

Visual Basic
Public Sub Delete() 

Remarks

You cannot delete a line if the service call is closed.

Example

Deleting service call activity (C#)Copy Code
SAPbobsCOM.ServiceCalls oSrvCall; 
 
// Delete service call activity 
if(oSrvCall.GetByKey(1) == true) 

    oSrvCall.Activities.SetCurrentLine(1); 
    oSrvCall.Activities.Delete(); 
    oSrvCall.Update(); 

See Also