I have a developed a test automation framework that writes pass or fail values for test cases in excel sheet currently. We have decided to migrate to Google Sheets.
Can anyone provide a sample java code to Write data to Google Sheet using Google Sheet API V4?
I had a look sheet documentation but it was not clear though.
Thank you.
To write to a sheet, you will need the spreadsheet ID, the range(s) in A1 notation, and the data you wish to write arranged in an appropriate request body object.
To write data to a single range, use a spreadsheets.value.update request:
If you want to write multiple discontinuous ranges, you can use a spreadsheets.value.batchUpdate request:
Please find answer for above question: