NetSuite SuiteScript Tutorial - RESTlet | What is RESTlet ? | CRUD Operations | REST | TBA | OAuth 1.0
SuiteScript 2.x RESTlet Script Type
A RESTlet is a SuiteScript that you make available for other applications to call. It can be called from either an external application or from another script within NetSuite. A RESTlet executes only when it is called and in some cases, returns a value to the calling application.
RESTlets can be useful when you want to bring data into NetSuite from another system, or if you want to extract data from NetSuite. RESTlets can also be used in combination with other scripts to customize the behavior of a page within NetSuite.
A RESTlet is a SuiteScript that executes when called by an external application or by another SuiteScript. Depending on how the RESTlet is written and called, it may also return data to the calling application.
A RESTlet can perform any function that can be implemented by using SuiteScript. At a high level, you can use a RESTlet to:
Retrieve, add, or manipulate data within NetSuite from an external source. In this sense, RESTlets can be seen as an alternative to NetSuite’s SOAP-based web services.
Customize the behavior of NetSuite pages and features. In this sense, RESTlets can be seen an alternative to other script types, such as Suitelets. The advantage of using a RESTlet compared to a Suitelet is that the RESTlet can return data, in plain text or JSON, to the calling application.
When you create and use a RESTlet, you will need to understand how to deploy and call it (and perhaps debug it) which is done differently than for other script types. You will also want to learn about authentication, governance, and security specific to RESTlets.
Calling a RESTlet. When you save a script deployment record for a RESTlet, the system automatically generates a URL that can be used to call the RESTlet. Because a RESTlet executes only when it is called, this information is critical for using the RESTlet. For more information, see Identifying a RESTlet in a Call.
To call a RESTlet that you have deployed, you can use one of four supported HTTP methods: delete, get, post, or put. Depending on which method you use, you may be required to embed input for the RESTlet within the URL, or you may be required to submit arguments in a request body. Additionally, for the call to be successful, your RESTlet script must contain an entry point that corresponds with the method you use to make the call. For more information, see Selecting an HTTP/HTTPS Method for Calling a RESTlet.
restlet,netsuite restlet postman,netsuite restlet authentication,what is restlet script in netsuite,netsuite restlet,similar to restlet,restlet in netsuite,netsuite restlet api,netsuite restlet setup,netsuite create restlet,netsuite restlet example,netsuite create a restlet,what is a netsuite restlet,restlet example netsuite,restlet script in netsuite,netsuite restlet introductionrestlet,
restlet netsuite,
restlet postman,
restlet framework tutorial,
restlet script in netsuite,
netsuite restlet authentication,
restlet in netsuite,
netsuite restlet tutorial,
netsuite restlet
⏱️⏱️VIDEO CHAPTERS⏱️⏱️
00:00 - Intro
00:10 - Create RESTlet Script File in VSCode
00:20 - Entry Points in RESTlet Script
00:40 - GET Entry Point in RESTlet Script
02:08 - Create Script Record for RESTlet Script
02:45 - Create Script Deployment for RESTlet Script
03:10 - Internal URL and External URL in RESTlet Script
03:35 - Testing Internal URL in RESTlet Script
04:25 - Testing External URL in RESTlet Script
05:02 - What is REST?
06:25 - What is RESTlet Script in NetSuite?
07:30 - Configuring POSTMAN to Test RESTlet Script
09:35 - Enable Features, TBA ( Token Based Authentication) OAuth 1.0
10:25 - Create Integration Record, TBA ( Token Based Authentication) OAuth 1.0
10:55 - Generate Consumer Key/Consumer Secret for TBA ( Token Based Authentication) OAuth 1.0
11:20 - Configure Authorization in POST for OAuth 1.0
12:00 - Generate Token ID/Token Secret for TBA ( Token Based Authentication) OAuth 1.0
13:00 - Configure Authorization in POST for OAuth 1.0
13:29 - Get NetSuite Account ID
14:19 - Testing GET Request of RESTlet Script in NetSuite
14:50 - Explain GET requestParams
16:45 - CRUD Operations in NetSuite with GET, PUT, POST, DELETE
17:15 - What is POST in RESTlet?
17:52 - Example of POST (Create) in RESTlet?
21:38 - Testing POST (Create) using POSTMAN
22:35 - What is GET in RESTlet?
22:58 - Example of GET (Read) in RESTlet?
23:55 - Testing GET (Read) using POSTMAN
24:08 - What is PUT in RESTlet?
24:38 - Example of PUT (Update) in RESTlet?
26:40 - Testing PUT (Read) using POSTMAN
27:05 - What is DELETE in RESTlet?
27:38 - Example of DELETE (Delete) in RESTlet?
29:47 - Testing DELETE (Delete) using POSTMAN
30:25 - Coding Documentation Reference