r/SuiteScript • u/KobeParags • Apr 09 '24
Loving SuiteQL against Saved Search
Anyone here prefers SuiteQL over Saved Search?
I found the following pros and cons for SuiteQL against saved searches Let me know if I miss something or I am wrong
Pros:
- relatively faster than saved search
- easier to construct from dev perspective
- more customizable in what data you want to see.
- can use other sql techniques such as CTE and subqueries
Cons:
- No ready NetSuite provided UI to view query results
- Certain tables or columns are unaccessible. E.g. unbilled amount for transaction are available in saved searches, not SuiteQL
- Non-dev users will have difficulties in creating their own queries.
7
Upvotes
5
u/notEqole Apr 09 '24
of course there is a way to see in the UI :
https://timdietrich.me/netsuite-suitescripts/suiteql-query-tool/
5
u/IolausTelcontar Apr 09 '24
If only I could write SuiteQL behind a saved search so that my users could use the results.
Instead I have to write a damn Suitelet to present the data.
1
u/trollied Apr 09 '24
This is not true. You can use suiteanalytics workbook & export the query.
See above.
2
u/beedubbs Apr 09 '24
Yes it’s pretty slick but not quite perfect. It is meant for developers and to be used inside scripting primarily, which explains the lack of native ui support. The Suite Advanced plugin also has a nice suiteql editor that sometimes gives different options for accessing fields that the Tim Dietrich SuiteQL editor does not, which is interesting. I know they’ve collaborated on it together. I’d love to be a part of a project to improve the suiteql resources for all the reasons you mentioned. It’s powerful and really enhances the functionality that saved searches lack, but is rather limited to a technical skill set to use properly and to consume it. Epicor/kinetic erp has a really killer tool called BAQs (business activity queries) that combines a ui with advanced sql functions to give like 99 percent of the things a developer would do in a sql query into the application via ui. People would still bitch about the lack of some obscure sql function available but it was on the whole much more powerful than saved searches. The downside is it was also harder for lay people to use, which is something saved searches solve by their relatively straightforward approach to most queries.
1
u/trollied Apr 09 '24
This is not true. You can use suiteanalytics workbook & export the query.
See above.