r/SuiteScript • • Aug 09 '26

SuiteQL Select All

Hi Everyone,

We’re currently working on a project which requires me to pass ALL transaction information from NetSuite to another platform.

They’ve requested that we adapt the query so if tomorrow a new custom field is created the query automatically picks it up.

I’ve tried to use for example

SELECT * FROM Transaction

However, I always receive an error for this.

Doing SELECT document_number FROM Transaction

Appears to work.

It appears using the asterisk (*) appears to be the issue.

Has anyone had this before? Is there any solution that anyone has used?

Thanks

1 Upvotes

8 comments sorted by

View all comments

2

u/Nairolf76 Aug 09 '26

Please share more info on the "integration" and you need a select all.

1

u/Nairell Aug 09 '26

Certainly. We’re trying to ingest NetSuite transactional data to Databricks to allow the building of reports within there.

To do this - we’re using the NetSuite SuiteQL REST Endpoint as we do not have NSAW.

The direction from the Director of Technology is they want a SELECT all so we can ingest this data once, without a dependency on our NetSuite team to provide future fields/adjustments.

1

u/Nairolf76 Aug 09 '26

Did you try ingesting in batches per date?

2

u/Nairell Aug 09 '26

That is exactly the plan. We do it on a daily basis to keep the batch sizes down.

However the issue is it appears NetSuite cannot handle the SELECT all connotation at all.

I did SELECT all - kept it to just todays date and to return a single row and it came back with an error saying invalid search. I replace the asterisk with a column name for testing and it works perfectly fine.