/** * @NApiVersion 2.x * @NScriptType Restlet */ define([‘N/task’], function(task) { return { get : function() { var mrTask = task.create({ taskType: task.TaskType.SCHEDULED_SCRIPT }); mrTask.scriptId = 488; mrTask.deploymentId = ‘customdeploy_scheduledscript’; mrTask.params = { custscriptcustom_data: ‘data’ }; mrTask.submit(); return “Scheduled script updated”; } } });
Tag: Restlet API
NetSuite Data Management: Using RESTlets for External System Integration
RESTlets are a flexible, RESTful API framework in NetSuite that enables integration with external systems. They are used to expose NetSuite data to external platforms, facilitating real-time data exchange, automating processes, and keeping systems in sync. Key Points on RESTlets Custom API Endpoints: RESTlets enable the creation of tailored API endpoints for specific business needs,… Continue reading NetSuite Data Management: Using RESTlets for External System Integration
N/scriptTypes/restlet Module
Use the N/scriptTypes/restlet module to create custom HTTP responses for your RESTlet script. This module is available only to RESTlet script type. N/scriptTypes/restlet Module Members restlet.Response :- restlet.createResponse(options): – Parameters:- Errors:- Response Object Members The following members are called on the restlet.Response object. Response.content:- Response.contentType:- Syntax: /** * @NApiVersion 2.1 * @NScriptType RESTlet */ define([‘N/scriptTypes/restlet’,… Continue reading N/scriptTypes/restlet Module
RESTlet Governance and Security
RESTlet Governance The SuiteScript governance model tracks usage units on two levels: API level and script level. At the API level, RESTlets have the same usage limits as other types of SuiteScripts. At the script level, RESTlets allow 5,000 usage units per script, a limit five times greater than Suitelets and most other types of… Continue reading RESTlet Governance and Security
API call a RESTlet from a client script.
To API call a RESTlet from a client script, the URL does not have to include the RESTlet domain. let response = https.get({ url: ‘/app/site/hosting/restlet.nl?script=111&deploy=1’ }); console.log(response.body);
Restlet API for Item Fulfillment Creation in NetSuite
JIRA Code : MICL-300