I just did this through server connect the other day, I must tell you though it was not at all fun, because of the csv parameters i had to stick within.
Once the server connect component was made, it allows me to click an icon that downloads it, however it is not really made from the table as it appears on the website.
Maybe you can look at this and see if it might serve your purposes https://www.youtube.com/watch?v=m8CT7vuGHwU
And here is a link to what i needed to do if it helps you at all
https://community.wappler.io/t/export-csv-file-from-more-than-a-single-query/1958?u=psweb