{"id":560,"date":"2021-08-04T07:40:50","date_gmt":"2021-08-04T07:40:50","guid":{"rendered":"https:\/\/www.saturotech.com\/blog\/?p=560"},"modified":"2024-03-18T19:35:47","modified_gmt":"2024-03-18T19:35:47","slug":"suitescript-2-x-suitelet-script-type","status":"publish","type":"post","link":"https:\/\/saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/","title":{"rendered":"Understanding SUITELET 2.x Basics"},"content":{"rendered":"\n<p><strong><span style=\"text-decoration: underline;\">What is <u>NetSuite SuiteLet ??<\/u><\/span><\/strong><\/p>\n\n\n\n<p>A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized NetSuite pages as well as develop various backend logic. It is a server-side script and works on a request-response model. NetSuite Suitelet has a feature \u201cAvailable Without Login\u201d, by using this we can access it externally (without NetSuite login).<br><br><strong><u>SuiteLets Type<\/u><\/strong><\/p>\n\n\n\n<p>We have 2 types of SuiteLets in NetSuite<\/p>\n\n\n\n<p><strong>Front-End Suitelets : <\/strong>These SuiteLets are mostly used to create NetSuite look like custom pages that can be created by using UI objects. SuiteScript UI object has elements for creating NetSuite custom page elements like fields sublists, buttons, forms, columns, etc.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"459\" src=\"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png\" alt=\"\" class=\"wp-image-563\" srcset=\"https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png 1024w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-300x134.png 300w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-768x344.png 768w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image.png 1276w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Backend Suitelets<\/strong> : Backend Suitelets do not used to create custom pages, it executes backend logic, which can then be utilize by other parts of a custom application. It also provides a service for backend logic to other SuiteScripts.<\/p>\n\n\n\n<p><strong><u>SuiteLet Working in NetSuite<\/u><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/SuiteLet-Working-in-NetSuite-.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/SuiteLet-Working-in-NetSuite--1024x576.jpg\" alt=\"\" class=\"wp-image-562\" srcset=\"https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/SuiteLet-Working-in-NetSuite--1024x576.jpg 1024w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/SuiteLet-Working-in-NetSuite--300x169.jpg 300w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/SuiteLet-Working-in-NetSuite--768x432.jpg 768w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/SuiteLet-Working-in-NetSuite--1536x864.jpg 1536w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/SuiteLet-Working-in-NetSuite-.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>When user starts an HTTP GET\/POST from system generated URL , a web generated object contains the data from client request.<\/li><li>Then script get invoked which give user access to entire server SuiteScript API as well as a web request and web response object.<\/li><li>And NetSuite process the script and returns response to the user. Response can be a string (Free-From-Text), XML, RSS, HTML etc.<\/li><\/ol>\n\n\n\n<p><strong><u>SuiteLet Governance Limit<\/u><\/strong><strong><\/strong><\/p>\n\n\n\n<p>To improve performance, NetSuite uses SuiteScript governance which is based on used units. If the number of allowable usage units is exceeded, the script execution is terminated. Similarly, NetSuite provides a 1000-unit governance limit for SuiteLet for all suitescript versions. There is no additional API or module to reset this for SuiteLets.<\/p>\n\n\n\n<p><br><strong><u>SuiteLet Limitations<\/u><\/strong><strong><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SuiteLets cannot be used for NetSuite integration.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>SuiteLets cannot be used for web stores. NetSuite online custom forms are available for webstore.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Because there are no login requirements for SuiteLet that are available without login, so the data contained within the Suitelet will be less secure.<\/li><\/ul>\n\n\n\n<p><strong><u>SuiteLet Examples<\/u><\/strong><strong><\/strong><\/p>\n\n\n\n<p><strong>Frontend Suitelet : Output<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1.png\" alt=\"\" class=\"wp-image-564\" width=\"267\" height=\"156\" srcset=\"https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1.png 632w, https:\/\/saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1-300x176.png 300w\" sizes=\"auto, (max-width: 267px) 100vw, 267px\" \/><\/a><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>\/**<\/li><li>* @NApiVersion 2.x<\/li><li>* @NScriptType Suitelet<\/li><li>*\/<\/li><li>define([], function() {<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;function onRequest(context) {<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var xml = &#8216;&lt;html&gt;&lt;body&gt;&lt;h1&gt;Front End SuiteLet Called Successfully&lt;\/h1&gt;&lt;\/body&gt;&lt;\/html&gt;&#8217;;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.response.write(xml);<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.response.setHeader({<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: &#8216;Custom-Header-Demo&#8217;,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value: &#8216;Demo&#8217;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;}<\/li><li>&nbsp;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;return {<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onRequest: onRequest&nbsp; \/\/ trigger point<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;};<\/li><li>});<\/li><li>&nbsp;<\/li><\/ol>\n\n\n\n<p><strong>2. Backend Suitelet : <\/strong>The following sample shows how to fetch search results into a PDF file.<strong><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>\/**<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;* @NApiVersion 2.x<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;* @NScriptType Suitelet<\/li><li>&nbsp;*\/<\/li><li>\/\/ This sample shows how to fetch search results into a PDF file.<\/li><li>define([&#8216;N\/render&#8217;, &#8216;N\/search&#8217;], function(render, search) {<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function onRequest(options) {<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var request = options.request;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;var response = options.response;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var xmlStr = &#8216;&lt;?xml version=\\&#8221;1.0\\&#8221; encoding=\\&#8221;UTF-8\\&#8221;?&gt;\\n&#8217;+<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;&lt;!DOCTYPE pdf PUBLIC \\&#8221;-\/\/big.faceless.org\/\/report\\&#8221; \\&#8221;report-1.1.dtd\\&#8221;&gt;\\n&#8217;+<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;&lt;pdf lang=\\&#8221;ru=RU\\&#8221; xml:lang=\\&#8221;ru-RU\\&#8221;&gt;\\n&#8221; + &#8220;&lt;head&gt;\\n&#8217; +<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;&lt;\/head&gt;\\n&#8217; +<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;&lt;body font-family=\\&#8221;russianfont\\&#8221; font-size=\\&#8221;18\\&#8221;&gt;\\n??????? ?????&lt;\/body&gt;\\n&#8221; + &#8220;&lt;\/pdf&gt;&#8217;;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var rs = search.create({<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: search.Type.SALES_ORDER,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title: \u2018SalesOrder Search&#8217;,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: &#8216;customsearch_my_second_so_search&#8217;,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; columns: [{<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name: &#8216;entity&#8217;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }],<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filters: [{<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name: &#8216;mainline&#8217;,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operator: &#8216;is&#8217;,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; values: [&#8216;T&#8217;]<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }],<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; settings: [{<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name: &#8216;consolidationtype&#8217;,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value: &#8216;AVERAGE&#8217;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }]<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}).run();<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var results = rs.getRange(0,2);<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var renderer = render.create();<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; renderer.templateContent = xmlStr;<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; renderer.addSearchResults({<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;templateName: &#8216;BackEnd Suitelet&#8217;,<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;searchResult: results<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var newfile = renderer.renderAsPdf();<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.writeFile(newfile, false);<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;}<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return {<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onRequest: onRequest<\/li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<\/li><li>});<\/li><\/ol>\n\n\n\n<p><strong>Learn More About<\/strong> <strong>SUITELET<\/strong><\/p>\n\n\n\n<p>To Know more about NetSuite Cloud ERP, feel free to reach us on: <\/p>\n\n\n\n<p><strong>Website:<\/strong>\u202f<a rel=\"noreferrer noopener\" href=\"http:\/\/saturotech.com\/\" target=\"_blank\">https:\/\/saturotech.com\/<\/a><\/p>\n\n\n\n<p>Email ID: <a rel=\"noreferrer noopener\" href=\"mailto:info@saturotech.com\" target=\"_blank\"><a rel=\"noreferrer noopener\" href=\"mailto:info@saturotech.com\" target=\"_blank\">sales@saturotech.com<\/a><\/a><\/p>\n\n\n\n<p><strong>Contact No:<\/strong> +91 844-844-8939 (&amp; Press 3) <\/p>\n\n\n\n<p><strong><strong>You may also be interested&nbsp;in&nbsp;reading this:<\/strong><\/strong><\/p>\n\n\n\n<p><strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.saturotech.com\/blog\/?p=508\" target=\"_blank\">Suite Script 2.0<\/a><\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.saturotech.com\/blog\/?p=525\" data-type=\"URL\" target=\"_blank\" rel=\"noreferrer noopener\">How to handle Tax Collection at Source (TCS) in NetSuite<\/a><\/strong><\/p>\n\n\n\n<p><strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.saturotech.com\/blog\/?p=546\" target=\"_blank\">NetSuite for Manufacturing Business Processes<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is NetSuite SuiteLet ?? A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-cloud-computing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding SUITELET 2.x Basics | NetSuite Blog | Saturotech<\/title>\n<meta name=\"description\" content=\"What is NetSuite SuiteLet ?? A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized NetSuite pages\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding SUITELET 2.x Basics | NetSuite Blog | Saturotech\" \/>\n<meta property=\"og:description\" content=\"What is NetSuite SuiteLet ?? A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized NetSuite pages\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/\" \/>\n<meta property=\"og:site_name\" content=\"NetSuite Blog | Saturotech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/saturotech\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-04T07:40:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-18T19:35:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/#\\\/schema\\\/person\\\/ccef02e83e22a41c4d0df8720fe7b70e\"},\"headline\":\"Understanding SUITELET 2.x Basics\",\"datePublished\":\"2021-08-04T07:40:50+00:00\",\"dateModified\":\"2024-03-18T19:35:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/\"},\"wordCount\":1408,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-1024x459.png\",\"articleSection\":[\"Cloud Computing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/\",\"url\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/\",\"name\":\"Understanding SUITELET 2.x Basics | NetSuite Blog | Saturotech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-1024x459.png\",\"datePublished\":\"2021-08-04T07:40:50+00:00\",\"dateModified\":\"2024-03-18T19:35:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/#\\\/schema\\\/person\\\/ccef02e83e22a41c4d0df8720fe7b70e\"},\"description\":\"What is NetSuite SuiteLet ?? A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized NetSuite pages\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-1024x459.png\",\"contentUrl\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-1024x459.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.saturotech.com\\\/blog\\\/suitescript-2-x-suitelet-script-type\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding SUITELET 2.x Basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/\",\"name\":\"NetSuite Blog | Saturotech\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/saturotech.com\\\/blog\\\/#\\\/schema\\\/person\\\/ccef02e83e22a41c4d0df8720fe7b70e\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b574bd0e20944dbebcaded909cc2824ee60418212541e4eb26700e2728c65ff0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b574bd0e20944dbebcaded909cc2824ee60418212541e4eb26700e2728c65ff0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b574bd0e20944dbebcaded909cc2824ee60418212541e4eb26700e2728c65ff0?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding SUITELET 2.x Basics | NetSuite Blog | Saturotech","description":"What is NetSuite SuiteLet ?? A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized NetSuite pages","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/","og_locale":"en_US","og_type":"article","og_title":"Understanding SUITELET 2.x Basics | NetSuite Blog | Saturotech","og_description":"What is NetSuite SuiteLet ?? A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized NetSuite pages","og_url":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/","og_site_name":"NetSuite Blog | Saturotech","article_publisher":"https:\/\/www.facebook.com\/saturotech\/","article_published_time":"2021-08-04T07:40:50+00:00","article_modified_time":"2024-03-18T19:35:47+00:00","og_image":[{"url":"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#article","isPartOf":{"@id":"https:\/\/saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/"},"author":{"name":"admin","@id":"https:\/\/saturotech.com\/blog\/#\/schema\/person\/ccef02e83e22a41c4d0df8720fe7b70e"},"headline":"Understanding SUITELET 2.x Basics","datePublished":"2021-08-04T07:40:50+00:00","dateModified":"2024-03-18T19:35:47+00:00","mainEntityOfPage":{"@id":"https:\/\/saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/"},"wordCount":1408,"commentCount":0,"image":{"@id":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#primaryimage"},"thumbnailUrl":"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png","articleSection":["Cloud Computing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/","url":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/","name":"Understanding SUITELET 2.x Basics | NetSuite Blog | Saturotech","isPartOf":{"@id":"https:\/\/saturotech.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#primaryimage"},"image":{"@id":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#primaryimage"},"thumbnailUrl":"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png","datePublished":"2021-08-04T07:40:50+00:00","dateModified":"2024-03-18T19:35:47+00:00","author":{"@id":"https:\/\/saturotech.com\/blog\/#\/schema\/person\/ccef02e83e22a41c4d0df8720fe7b70e"},"description":"What is NetSuite SuiteLet ?? A NetSuite SuiteLet is an amplification in NetSuite SuiteScripts which allows developers to create customized NetSuite pages","breadcrumb":{"@id":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#primaryimage","url":"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png","contentUrl":"https:\/\/www.saturotech.com\/blog\/wp-content\/uploads\/2021\/08\/image-1024x459.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.saturotech.com\/blog\/suitescript-2-x-suitelet-script-type\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/saturotech.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Understanding SUITELET 2.x Basics"}]},{"@type":"WebSite","@id":"https:\/\/saturotech.com\/blog\/#website","url":"https:\/\/saturotech.com\/blog\/","name":"NetSuite Blog | Saturotech","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/saturotech.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/saturotech.com\/blog\/#\/schema\/person\/ccef02e83e22a41c4d0df8720fe7b70e","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b574bd0e20944dbebcaded909cc2824ee60418212541e4eb26700e2728c65ff0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b574bd0e20944dbebcaded909cc2824ee60418212541e4eb26700e2728c65ff0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b574bd0e20944dbebcaded909cc2824ee60418212541e4eb26700e2728c65ff0?s=96&d=mm&r=g","caption":"admin"}}]}},"_links":{"self":[{"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/comments?post=560"}],"version-history":[{"count":5,"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":1379,"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/posts\/560\/revisions\/1379"}],"wp:attachment":[{"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saturotech.com\/blog\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}