Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Insert method inserts the Axapta record into the database. Calling this method resembles calling the insert member method of a record in the Axapta X++ language.
Namespace: Microsoft.Dynamics.BusinessConnectorNet
Assembly: Microsoft.Dynamics.BusinessConnectorNet (in Microsoft.Dynamics.BusinessConnectorNet.dll)
Syntax
'Declaration
Public Sub Insert
'Usage
Dim instance As AxaptaRecord
instance.Insert()
public void Insert()
public:
void Insert()
Exceptions
| Exception | Condition |
|---|---|
| BusinessConnectorException | An unexpected error has occurred with the Business Connector. |
| AxaptaRecordNotValidException | An attempt has been made to access an invalid record. |
Remarks
Every Axapta table has a default X++ insert method. This method is invoked when calling the InitValue method from the Axapta Business Connector. To specify new default values for table columns that override the table’s default X++ insert method, use the following procedure.
Start the Axapta client.
Start the Application Object Tree (AOT).
In the AOT, go to DataDictionary and then to Tables.
Expand the table that you want to modify.
Right-click the Methods node, choose Override Method, and then choose insert.
Use the editor to specify the desired behavior for the insert method.
Close the editor.
The behavior is the same for initValue and update. If you want to execute your own code in the context of these operations, override the corresponding methods.