Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
Reply in two parts:
Part 1
> We only have 500 API calls a day, so this can't get too dirty.
You can avoid calling API_DoQuery altogether by making your queries through the native action ?a=q and requesting CSV output instead of HTML using &opts=csv.
Here is a query of the Formula Function Reference table manually applied through the console:
Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=657
The script above makes use of a QuickBase function CSVToArray() which is located in in /js/_packed/common.packed.js so you don't have to load a CSV parsing script yourself.
Part 2
The problem can be solved with script using one table and a script that makes multiple queries. It would require specific knowledge of your fields and current tables.
Part 1
> We only have 500 API calls a day, so this can't get too dirty.
You can avoid calling API_DoQuery altogether by making your queries through the native action ?a=q and requesting CSV output instead of HTML using &opts=csv.
Here is a query of the Formula Function Reference table manually applied through the console:
Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=657
The script above makes use of a QuickBase function CSVToArray() which is located in in /js/_packed/common.packed.js so you don't have to load a CSV parsing script yourself.
Part 2
The problem can be solved with script using one table and a script that makes multiple queries. It would require specific knowledge of your fields and current tables.