The triggers for having the DataType as Table are as follows:
- Import::OnAfterInsertRecord(), for Import only: This trigger is typically used when the data is being imported into temporary tables. This is where we would put the C/AL code to build and insert records for the permanent database tables.
- Import::OnBeforeModifyRecord(), for Import only: When AutoSave is Yes, this is used to update the imported data before saving it.
- Import::OnAfterModifyRecord(), for Import only: When AutoSave is No, this is used to update the data after updating.
- Export::OnPreXMLItem(), for Export only: This trigger is typically used for setting filters and initializing before finding and processing the first database record.
- Export::OnAfterGetRecord(), for Export only: This trigger allows for access to the data after the record is retrieved from the Business Central database. This trigger is typically used to allow manipulation of the table fields being exported.
- Import::OnAfterInitRecord...