8. Setup an Action Sending a CSV File via Mail¶
Scenario Every day five specific tables are loaded. After all these tables have been successfully loaded a CSV file should be sent per mail, based on a view containing business logic based on these 5 tables.
Therefore, setup an action, in this case of the type ‘exp_mail’, which should be triggered every time the application status of the application containing all five tables as components changes to ‘FINISHED_TYPE = FINAL’. To do so follow the steps below:
Create an application
Add components to the application
Create a formatting rule for the CSV file
Create an action
Add the action to the application
8.1. Create an application¶
Finally, define the action itself:
Check the table RED_APP_ACTIONS after having followed this guide.