Deletes a record from the object table.
| Visual Basic |
|---|
Public Function Remove() As Long |
Returns a result value that indicates success or failure. If the method succeeds, it returns 0. Otherwise, it returns an error code.
You can retrieve the last error code and its description using the method GetLastError.
You cannot delete a price list if it is:
- The base price list of another price list.
- Associated with a business partner.
- Associated with a product tree (ProductTrees) record.
- Associated with a payment term type (PaymentTermsTypes) record.
You must use the GetByKey method to retrieve a valid object.
| Removing a price list (C#) | Copy Code | |
|---|---|---|
| ||