Google Sheets API v4 - How to get the last row with value?

前端 未结 4 1862
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 03:27

How to get the last row with value in the new Google Sheets API v4 ?

i use this to get a range from a sheet:

mService.spreadsheets().values().get(\"I         


        
4条回答
  •  长情又很酷
    2020-12-10 04:20

    I managed to get it by counting the total rows from current Sheets. Then append the data to the next row.

    rowcount = this.mService.spreadsheets().values().get(spreadsheetId, range).execute().getValues().size()
    

提交回复
热议问题