NetSuite Queries and Proper Table Names
NickName:deal tek Ask DateTime:2021-07-02T04:54:20

NetSuite Queries and Proper Table Names

I am trying to work with Oracle, NetSuite using Postman App (Mac) to get started with basic set up and queries.

I have the basics working, such as getting access and refresh tokens going and also basic queries from the Postman - netSuite rest API collection

https://netsuite.custhelp.com/app/answers/detail/a_id/87118

Q: in the post man netSuite examples, these queries do work, however I am confused as to the table names, as they do not seem to match what is showing in the NetSuite Docs (ODBC)

https://zzzzz.app.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2021_1/odbc/record/customer.html

they say:

FROM customer c, transaction t ????

why not : customers and transactions as table names? What is the significance of customer 'c' and transaction 't' ? Am guessing correctly that the 'c' and the 't' are like alias for the table name to be used in the where area?

How can I find the proper table names to use for Rest API queries?

Any help would be appreciated– Dave

postman queries...

    "q": "SELECT c.email AS email, c.companyName AS company, t.tranId AS document, t.tranDate AS date FROM customer c, transaction t WHERE t.entity = c.id AND t.type = 'SalesOrd'"
}
// or
{
    "q": "SELECT id, companyName, email, dateCreated FROM customer WHERE dateCreated >= '{{thisYearStart}}' AND dateCreated < '{{thisYearEnd}}'"
}```

Copyright Notice:Content Author:「deal tek」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/68216835/netsuite-queries-and-proper-table-names

More about “NetSuite Queries and Proper Table Names” related questions

NetSuite Queries and Proper Table Names

I am trying to work with Oracle, NetSuite using Postman App (Mac) to get started with basic set up and queries. I have the basics working, such as getting access and refresh tokens going and also b...

Show Detail

Netsuite - Getting Started with ODBC Queries

I have the ODBC setup on windows using this... https://netsuite.custhelp.com/app/answers/detail/a_id/38988 Seems like it is setup and I entered the system DSN info ok... Now, I need to know how I c...

Show Detail

How to identify deleted transactions in the Netsuite Transactions table

I'm working on building reports outside of NetSuite (in order to join this data with data from other source systems) using data pulled into Redshift from the NetSuite back-end tables. I have several

Show Detail

List of Table names from SQL queries

I am trying to look for a way to get the list of all the table names used in various queries executed in a SQL Server database in last 30 days. I have the queries and like to know if we can

Show Detail

Are joins the proper way to do cross table queries?

I have a few tables in their third normal form and I need to do some cross table queries to get the information I need. I looked at joins but it seems like it will create a new table. Is this the ...

Show Detail

how to create a custom table in netsuite?

I am using netsuite builder for creating a website. I want to create a mysql table in it but it does not allow me to do so. Please suggest how to create custom mysql table in netsuite database.

Show Detail

Creating a linked server connection to NetSuite

I'm trying to access NetSuite's data from SQL Server as the NetSuite reporting by itself isn't enough. For doing so, I installed the NetSuite ODBC adapter on the server and tried creating a linked ...

Show Detail

How to debug Netsuite restlet from python

Im struggling getting debugging to work in netsuite, not sure if I'm following proper steps. My script deployment is set to testing and on starting the debugger I got some cookie value which I then...

Show Detail

Table and column names in dynamic PostgreSQL queries

I'm struggling with a stored procedure which heavily uses dynamic queries. Among others I need to store maximum value of an existing column into a variable. Postgres documents state "if you want to...

Show Detail

NetSuite data import with country code?

Question for the NetSuite experts: Before my time, my current company decided to move to NetSuite. I'm being asked to retrieve customer data from our in-house SaaS and reformat it for import to

Show Detail