docs: updated NetSuite config examples to include .js extension for version 2.1 #24
| @ -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" | ||||
|   } | ||||
| } | ||||
| ``` | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user