Need help with converting data into csv file

I have my Data Model with 4-5 columns/fields. Now I want to convert that data model data into the CSV inside the bubble (not download the CSV on the user’s machine). After converting it to CSV, then I want to send that file to a third-party API endpoint. I need to do all this in the same workflow. The main problem is converting that table data into csv and then holding onto that csv (maybe uploading it to storage in some way).

Can anyone please help me to achieve the same?