Please enable JavaScript to view this site.

 

SDK Documentation

Published Events

The “Zetadocs Expenses Customize” data type contains all the published events that can be used.

Below is the current list of Events available.

Event name 

Runs 

OnBeforeImport

This event allows you to execute any additional custom code before the Import process into Zetadocs Expenses is run.

OnAfterImport

This event can be used to modify the Import data bundle before being Imported into Zetadocs Expenses.

OnBeforeExport

Before the Export Process into Business Central is Run. 

OnAfterExport

After the Export Process has run and records have been written to the database. 

OnBeforeCreatePurchaseHeader

Before the Purchase Header for a purchase invoice record is created, this event will allow you to set some data for the Purchase Header before the standard processing is performed.

OnAfterCreatePurchaseHeader

This event will allow you to make amendments to the Purchase Header after it has been created by the export process.

OnBeforeCreatePurchaseLine

This event allows you to set the initial data for the Purchase Line for the expense item that is about to be processed (each expense item is processed one at a time in a sequential manner).

OnAfterCreatePurchaseLine

This event will allow you to make amendments to the Purchase Line for the expense item currently being processed (each expense item is processed one at a time in a sequential manner).

OnBeforeCreateJournalLine

Before an expense item is processed, this event will allow you to set the initial data for the General Journal Lines.

OnAfterCreateJournalLine

After an expense item is processed, this event will allow you to update the data for the General Journal Line.