New type of export file for Payroll system

In Finance and Operations (D365FO) there is a Transfer to pay job under Time and attendance / Maintain payroll / Transfer to pay, that exports the pay lines to a csv file.
I needed to make a new export type here for Visma files.

And under the Setup / Time and attendance parameters, there is a Field "File format"













So to do that first I had to create a new File format to select under "File format"

That is done by extending the Base Enum JmgPayEventsExportType and adding the new element Visma.

After that I made a copy of the class JmgPayEventsExport_Std that is the class that is run when Standard is selected in the field "File format"

I will not go into the details of changes that I made to the class, but this is the declaration of my new class.

[JmgPayEventsExportTypeFactoryAttribute(JmgPayEventsExportType::Visma)]
class JmgPayEventsExport_Visma extends JmgPayEventsExport
{

So what you have to do it set the JmgPayEventsExportTypeFactoryAttribute to your new enum element, and the class has to extend JmgPayEventsExport

Now you can change the code of the class to do the export in the new format.

But there is one important step before this will work, you need to clear the AOD cache, or you will get an error, this can be done under System administration / Setup / Refresh elements

Kommentarer

Populære opslag fra denne blog

Dynamics AX use of the startupcmd parameter

Axapta Manager (AxDynManagerV1.03)

Axapta Manager (AxDynManagerV1.02)