Do you have access on creating your own Google Sheet API resource? If not, my bad on the assumption.
You might want to follow @minijohn's take on the process. Personally, I prefer to avoid using the delete a row function of the native google sheet resource in retool.
However, if you can create your own GSheet API resource, my approach would be:
Add input components for Spreadsheet ID and Sheet Range to be deleted (refer to screenshot below)
Custom GSheet Resource clearing the user input sheet range -- this can be added as a button event but making sure the above input components are filled with the right values (refer to screenshot below)
Update the spreadsheet with the new data using the native google sheet resource
I followed the instructions from @jocen's post and I would like to add How to set up OAuth 2.0 for ReTool. Not having credentials setup was my first hump to get over. I believe I now have a solid connection.
So I have a worksheet that was give to me to automate. The workbook already has formulas on it. User will go to a site, pull a report and export it as a CSV. From there the user would copy that data and paste it into this workbook daily. They remove the data from the previous day and enter in the data from the new report. The workbook takes that data and does calculations based on the data provided and generates a report for another software to understand.
All this copy and paste is currently done manually. My goal is to just get the data formulated for someone to export from ReTool as a CSV that the final software will understand when it is imported.
Sorry for so much info, I didn't want to leave anything out! Again thank you both for your help!
That is correct. If I click on "Test OAuth intergration with your own account" it will ask me for permission and then go back to the "Edit Resource" screen.
Does your resource URL now have finishedOAuth=true? If so, you should be able to test it out in an app to see if you can fetch data! Depending on the API's auth setup, it just might not be returning certain tokens (like the ID token) and that's completely okay.