DEV Community

Cover image for How to Sync NetSuite to Google Sheets with n8n (SuiteQL + Schedule Trigger)
Andrey Tverdomed for Entech Solutions

Posted on Originally published at integrationstars.com

How to Sync NetSuite to Google Sheets with n8n (SuiteQL + Schedule Trigger)

NetSuite exports search results to CSV, PDF and Microsoft Excel (XLSX). Those files are one-off copies. If a team works from a Google Sheet every morning, you want the sheet to refresh on its own.

Here is the workflow we use with n8n:

  1. Connect n8n to NetSuite with OAuth 2.0, using an integration record with the REST Web Services scope and a read-only integration role.
  2. Write and test a SuiteQL query that includes the internal ID.
  3. Prepare the sheet with a header row matching the query's column aliases.
  4. Add a Schedule Trigger and set the workflow timezone (self-hosted n8n defaults to America/New York).
  5. Run the query: POST to /services/rest/query/v1/suiteql with prefer: transient, paging with limit, offset and hasMore.
  6. Split the items array into one item per row.
  7. Write with the Google Sheets node's Append or Update Row, matched on id, so rows update in place.
  8. Publish the workflow: n8n only runs a Schedule Trigger for a saved and published workflow.

Example query:

SELECT t.id, t.tranid, t.trandate, BUILTIN.DF(t.entity) AS customer, t.foreigntotal AS total
FROM transaction t
WHERE t.type = 'SalesOrd'
  AND t.trandate >= ADD_MONTHS(SYSDATE, -1)
ORDER BY t.id
Enter fullscreen mode Exit fullscreen mode

Limits worth knowing before you size it:

  • SuiteQL through REST returns at most 100,000 results; Oracle points larger workloads to SuiteAnalytics Connect (NetSuite2.com).
  • The Google Sheets API allows 300 write requests per minute per project and 60 per minute per user per project, then answers 429.
  • A Google spreadsheet holds up to 20 million cells.
  • Google service accounts created after April 15, 2025 can't access My Drive files, only shared drives (n8n's docs recommend OAuth2 for most cases).

The full guide, with the comparison table (NetSuite export vs SuiteAnalytics Connect vs Sheets add-ons vs n8n), the HTTP request and the Excel options, is here: NetSuite to Google Sheets with n8n.

Top comments (0)