As with most other C/SIDE objects, XMLports provide a set of triggers that can be customized with C/AL code. Most of these triggers are related to import and export events and provide the possibility to control the data flow in the middle of its migration from an external source to NAV tables, or vice versa.
This section will give you an overview of the most important and frequently used XMLport triggers, with some suggestions on how to use these triggers in your application.
Earlier in this chapter, we configured the primary key field of the Customer Payment table to receive new values automatically upon inserting a record. This approach slightly simplifies application code, but it has its drawback: it does not allow the NAV server to use a performance optimization known as buffered insert. With the Allow Buffered Insert option enabled, the NAV server can combine...