To automate a JSON export when a selected action occurs in the system, it is necessary to set up an automation. The setup can be found under Settings> Automations > 'New workflow'. Select a suitable name, description and language and click 'Save'.
Then select what you want the automation to be about. For example, if you want to get employee data via the API when an update has been made, select 'Employee'.
Next, you need to decide when you want the automation to trigger the generation of a JSON export. Following the example below, we should select 'Updated'.
It is then possible to add further configuration of the automation so that it must meet certain criteria before it is triggered and generates a JSON export. If you want to make further customization, read more here. Then click 'Save'.
Once saved, the pop-up window will close. To continue the update, click 'Add action'. Here you add what the automation should do when triggered by a action. Select 'Integration'.
In the following pop-up, add the JSON export template you want the automation to trigger. If you want to make further automations, read more here. When you are done with the setup, click 'Save'.
The automation should then look like the one below. When you are done with the setup, click 'Activate'. The automation is now active and next time a change is made to an employee's master data, it will generate a JSON export file that can be retrieved from the API.