From 681905928cff402778529a85e6d0b194fb7ead74 Mon Sep 17 00:00:00 2001 From: Asad Date: Fri, 6 Dec 2024 14:38:13 -0500 Subject: [PATCH] docs: updated NetSuite config examples to include .js extension for version 2.1 - Added .js extension to xlsx.full.min.js path in JSON examples. - Included note about older SuiteScript versions not requiring extensions. - Updated deployment verificaiton to Dec 2024. --- docz/docs/03-demos/30-cloud/02-netsuite.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docz/docs/03-demos/30-cloud/02-netsuite.md b/docz/docs/03-demos/30-cloud/02-netsuite.md index 0a974db..d7dd1dd 100644 --- a/docz/docs/03-demos/30-cloud/02-netsuite.md +++ b/docz/docs/03-demos/30-cloud/02-netsuite.md @@ -24,10 +24,10 @@ This demo was verified by NetSuite consultants in the following deployments: | `@NScriptType` | `@NApiVersion` | Date | |:----------------|:---------------|:-----------| -| ScheduledScript | 2.1 | 2024-05-01 | -| Restlet | 2.1 | 2024-05-01 | -| Suitelet | 2.1 | 2024-05-01 | -| MapReduceScript | 2.1 | 2024-05-01 | +| ScheduledScript | 2.1 | 2024-12-06 | +| Restlet | 2.1 | 2024-12-06 | +| Suitelet | 2.1 | 2024-12-06 | +| MapReduceScript | 2.1 | 2024-12-06 | ::: @@ -66,17 +66,23 @@ It is strongly recommended to keep the original filename `xlsx.full.min.js`. #### JSON Configuration Assuming the uploaded file was named `xlsx.full.min.js`, the `paths` object in -the JSON configuration should reference `xlsx.full.min`. The reference can be +the JSON configuration should reference `xlsx.full.min.js`. The reference can be absolute or relative[^4]. +:::note pass + +On older versions of SuiteScript, you might need to use without `.js` extension. + +::: + For example, if the script `xlsx.full.min.js` was placed in the `SuiteScripts` -top-level directory, the config should use `"/SuiteScripts/xlsx.full.min"`: +top-level directory, the config should use `"/SuiteScripts/xlsx.full.min.js"`: ```json title="JsLibraryConfig.json" { "paths": { // highlight-next-line - "xlsx": "/SuiteScripts/xlsx.full.min" + "xlsx": "/SuiteScripts/xlsx.full.min.js" } } ``` @@ -88,7 +94,7 @@ folder, the config can use `"./xlsx.full.min"`: { "paths": { // highlight-next-line - "xlsx": "./xlsx.full.min" + "xlsx": "./xlsx.full.min.js" } } ```