Hi Diana,
I think when you want to use the Excel Exporter it always good to first make sure you know what you want the result to look like.
I will try to give you an example based on the domain model you have attached in your question.
If you want a sheet with on each row an object from table 1, this should be your row object in your template. In this case it is hard to show data from table 2, since there is a many to 1 relationship between the entities.
When it is okay to have a row for each object in table 2 in your export sheet, it is better to use table 2 as your row object.
If you want to create your own logic around, instead of using the default buttons, I'd recommend using the GenerateExcelDoc Java action from the module and call it from your own microflow.
Hope this helps a bit, just let me know if you need anymore details.
Hi Diana Tena Nieto,
You can certainly use association while creating the template to fetch data from an associated table.
To be able to Retrieve data from another entity, you have to create an Association between 2 Entities ( Tables ). Associations are relations between your tables which will replace the concept of Primary key and foreign key.
The second screenshot from your Question specifies what type of join you want to use for your relation between the table( Inner join, Outer join), which will eventually affect the data to be pushed to your Excel sheet based on the join you have selected.
Example of Association for your Reference :
For your third Question:
To be able to Retrieve specific templates you should create separate flows. In the flow Retrieve the desired template Using the Template name.
Follow this documentation:Excel Exporter
ATB!!