Hi Vasu,
Thanks for all the details! It is very informative.
Now I can see different option to do this functionality to work
1) By taking data through below rest api url as data is saved in forms table. Then save this data to Excel/CSV format on some shared location.
https://localhost/rest/bizformitem.bizform.<Form-code-name>?where=FormInserted BETWEEN '2021-01-30T11:54:13.3956969-07:00' AND '2021-08-30T11:54:13.3956969-07:00'
2) By using Kentico provided classes like ReportInfo, ReportInfoProvider or ReportCategoryInfoProvider? Where I can use Reporting_SavedReport table to get data from rest api.
I have couple of questions here:
-
As you have suggested 2nd option - but here if we save the report, it will keep adding the report html data in Reporting_SavedReport table and then we can attach the file created from the html saved in the table. But this way it will impact the performance of DB - as we will be creating almost 34 reports daily and monthly basis and it will be lot over the period. So, I am just thinking if I can delete the saved report record once attached and saved at shared location, hope its correct way?
-
Is there any direct way where I can create the excel/csv file as and attachment through the code directly without saving it in DB?
-
If I go with 1st option - I just have to create the excel/csv file and save it, do you think this is better way in our used case?
Thanks!
Namita