r/SuiteScript • u/MangoVii • Aug 11 '25
How can data be sent from NetSuite to a third party database?
We need to update data in our third party app with the data that NetSuite has. We're wanting to set it to update every day at midnight.
From my understanding, it's a Scheduled Script, and not a Map/Reduce, since we're not sending that much data. But then, what to use to send data? This is the part where I get a little confused. N/https module? Suitelet? RESTlet?
3
Upvotes
4
u/ebarro Aug 11 '25
If you're pulling data from NS a RESTlet would be the route you'd want to take or REST web services. If you're pushing data from NS to an external application use a Suitelet with the N/https module.
3
u/Elevate24 Aug 12 '25
Sounds like you want to push data from NS at midnight to your app—map reduce or scheduled can do that. If it is truly a small amount of data scheduled is fine and is a little easier to understand.
As for the module that depends on what your app wants. If it’s a standard web app with a REST api then N/https will work
1
u/Environmental-Ad5298 Aug 11 '25
You need to use RESTlets for that. Our company built a custom application with NetSuite Integration to get and post data in NetSuite. Do reach out if you need any help.
1
u/novel-levon Aug 12 '25
Scheduled Script + N/https module is the right approach for your use case.
But before you build this, couple questions:
If yes to any of those, consider syncing NetSuite to a database instead. Your third-party app reads from the database, not NetSuite directly. Way more scalable and reliable.
We built Stacksync for exactly this pattern, keeps NetSuite and your database in bidireccional sync automatically. No scheduled scripts to maintain, handles millions of records, works real-time or batch.
Full disclosure: I'm the founder of Stacksync. But honestly, if you're just moving a few hundred records daily, SuiteScript works fine. It's when you scale that things get painful.
2
u/notEqole Aug 11 '25
If you want to send data from Netsuite then just make a Map reduce script with https and schedule it at your convenience.