Description
Adds a record to the object table in SAP Business One company database.
Syntax
Visual Basic |
---|
Public Function Add() As Long |
Return Type
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.
Remarks
You must values for the mandatory properties, and then call the Add method. The auto-complete feature completes all the default values of the other properties. In the DI API, the auto-complete feature operates the same way as in the SAP Business One application.
Example
Business Partner - Add Method Sample