Read the number of row from the API call
nfrankel opened this issue · comments
At the moment, the search range is configured using application.feishu.max-row
.
It depends on the actual data and needs to be changed when more data is set. Instead, it should be read from the API call:
GET /open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/query
{
"code": 0,
"data": {
"sheets": [
{
"grid_properties": {
"column_count": 20,
"frozen_column_count": 1,
"frozen_row_count": 2,
"row_count": 200
},
"hidden": false,
"index": 0,
"resource_type": "sheet",
"sheet_id": "t2hLql",
"title": "2023"
},
{
"grid_properties": {
"column_count": 20,
"frozen_column_count": 0,
"frozen_row_count": 2,
"row_count": 432
},
"hidden": false,
"index": 1,
"resource_type": "sheet",
"sheet_id": "417482",
"title": "2022"
}]
}
The row_count
returns the count.
No more Feishu integration