What exactly you want to do
is it you want to download the records from the table to excel file?
then you can do the following get the list of the entity and add a recordListToExcel from the widget section and pass the list to the recordlisttoexcel and then name the file that you want to save the excel file like (Filename.xlsx) and pass the RecordListToExcel.output to download widget...