A SuiteQL data source can retrieve up to 100,000 records from NetSuite based on a custom query.
Create a SuiteQL Data Source
- On the left side options column expand Data Sources > Bulk Sources > Query
- On the Query Data Sources page click Create Bulk Query button
- Select NetSuite SuiteQL Query Data Source
- Name – A friendly name for the data source
- Connection – Select the NetSuite connection to be used from the dropdown list
- Click Validate – this will enable the Query section
- Query (SuiteQL) – In the Query editor create a SuiteQL query
- Click Preview and make sure the expected data is returned

- Click Save and close the data source
Using SuiteQL Schema
By default, a SuiteQL data source will only return fields that contain data. So it may be necessary to define your fields in the data source schema to ensure they are always available when previewing and running integrations even if the returned data does not contain all expected fields.
Load initial Schema
- Build your query and ensure the preview data is the expected response
- Click the Schema tab
- Click Load Schema – this will run a sample query and add all returned columns
- Optionally – edit the data type of fields to enable sorting in the integration

- Click Validate
- Click Save
Modify Schema
If small changes are made to the query, it may be required to edit the schema using these steps.
- Open an existing SuiteQL query data source
- Click Validate
- Click the Schema tab
- Click Refresh Schema to add any new fields – this will not remove existing fields
- Add Column allows you to manually add a column if it is not being returned in the sample query
- Click Validate
- Click Save
Recreate Schema
If large changes are made to the query, it may be required to rebuild the schema using these steps.
- Open an existing SuiteQL query data source
- Click Validate
- Click the Schema tab
- Click Clear Schema -will remove all schema columns from the source
- Click Load Schema – this will run a sample query and add all returned columns
- Click Validate
- Click Save