Getting rows on Querying is not working
See original GitHub issueHi @theoephraim ,
I’am trying to get row/record on Querying with conditions. i.e. I have number of records in a google sheet with header names Emp Name, Emp ID, Emp Place etc. I’am trying to get the employee record and then, update who’s Emp ID is 6258. But its fails.
Please look in to below code snippets.
function getRecordToUpdate(empDetails, sheetInfo) {
var options = { offset: 0 };
options.query = 'Emp ID = '+empDetails.Employee_ID; //here Emp ID is 6258
return sheetInfo.getRows(options)
.then((res) => res)
.catch((err) => { throw err; })
}
(or)
function getRecordToUpdate(empDetails, sheetInfo) {
var options = { offset: 0 };
options.query = 'Emp ID = '+empDetails.Employee_ID;
const response =await sheetInfo.getRows(options)
}
I’am getting all the records of the sheet instead of, the record with Emp ID is 6258. Please help out with this.
Thanks in advance.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
sql - Query works but cant retrieve the data - Stack Overflow
I have two issues: I do not know how to get the queried data into an object and; If I run the script...
Read more >List rows present in a table - Filter Query not working
Solved: Hi All, My excel sheet has 5000 rows, I need to filter the row for specific values in particular column using filter...
Read more >Power Query Not Loading All Rows
Solved: I have tried to see if anyone else has had this issue but can't find anything. I have a query (using Power...
Read more >Querying for data - The Go Programming Language
QueryRow itself returns no error. Instead, Scan reports any error from the combined lookup and scan. It returns sql.ErrNoRows when the query finds...
Read more >Troubleshooting in Athena - AWS Documentation
CREATE TABLE AS SELECT (CTAS)Data file issuesFederated queriesJSON related ... For more information, see When I query CSV data in Athena, I get...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think it’s possible. Dig around in the google sheets docs directly.
Regardless, I suggest you try out airtable
Theo Ephraim *514.998.8436 | *theoephraim.com
No, unfortunately, that won’t help. Google discontinued their row-based api which included the querying abilities. I recreated the row-based calls as best I could, but it can’t do everything it used to. I recommend you try out https://airtable.com/invite/r/UnvfbjVY instead of google sheets.