Export Excel updated download link

Hello,

I am exporting a table on a button click and I want to give download link for the latest exported excel document.

So when I click on "Generate Excel" button, It should export a table and then update the download link for the latest document.

How can I achieve this on one interface. 

Thanks in advance!

  Discussion posts and replies are publicly visible