This is somewhat a suitescript related question
is there a way to analyze netsuite Data with R
n
Nathan L
02/14/2024, 1:56 PM
I think if you just set up an ODBC connection to RStudio you can pull the data in and manipulate it
l
Livio
02/14/2024, 1:57 PM
I may need to buy an ODBC driver then
n
Nathan L
02/14/2024, 1:59 PM
Yeah i believe you need a SuiteAnalytics connect license to get access to the ODBC Connection
l
Livio
02/14/2024, 1:59 PM
Ill check with CDATA - maybe theirs is cheaper
🫡 1
n
Nathan L
02/14/2024, 2:06 PM
If you want a complicated way around it, you could write a RESTlet in netsuite to run a query and return the results. Then make a HTTP call from your R application to the restlet to retrieve the data.
Could potentially write the RESTlet in a way that just consumes a SQL query and runs it.
âž• 2
l
Livio
02/14/2024, 3:07 PM
i did that but im getting an invalid login attempt
any idea why
Livio
02/14/2024, 3:08 PM
my R application is returning invalid login attempt
n
Nathan L
02/14/2024, 3:12 PM
It could be a number of things really.
I guess for starters, make sure you have your RESTlet deployed.
Youll need to generate access tokens. So create an integration for your RESTlet and get the consumer key and secret.
Then create your user access tokens and secret.
That's for OAuth 1. Youll also have to make sure youre using SHA-256 and not SHA-1
You could test the connection in Postman first.
e
erictgrubaugh
02/14/2024, 3:38 PM
Other options would be the REST or SOAP APIs. I'm not familiar enough with R to know what might be the easiest to work with. The benefit of the Restlet is that you get to customize the data format coming back to you.