📚 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

If you delete the default contact employee, the first contact employee in the remaining list becomes the default.

Example

Deleting business partner contact employee (C#)Copy Code
SAPbobsCOM.BusinessPartners oBP; 
 
// Delete contact employee 
if (oBP.GetByKey("BP1") == true) 

    oBP.ContactEmployees.SetCurrentLine(0); 
    oBP.ContactEmployees.Delete(); 
    oBP.Update(); 
}

See Also