This Google Sheets script fetches data from a Supabase database and writes the selected headers and data to the active sheet. The script first clears the sheet, writes the headers, then fetches the data from the Supabase API, and finally writes the data to the sheet.
- Make sure your Supabase Database RLS policy allows reads (you might need to tweak some RLS policies).
- Create a new Google Sheet or open an existing one.