Description: MR script that runs every day, searches for payment card tokens created on that day and load & save the line records (custom record) which holds the MASK value in the payment card Lookup Key field (custom field).
Tag: Suitescript
Error : SSS_MAXIMUM_NUMBER_RECIPIENTS_EXCEEDED
A user receives the error: SSS_MAXIMUM_NUMBER_RECIPIENTS_EXCEEDED This error is returned when the “notifySenderOnBounce” is set to True when using Communication APIs and the total number of recipients (recipient + cc + bcc) exceeds 10. To work around the error, the user can get the count for the recipients first. Then, if the count is greater than 10,… Continue reading Error : SSS_MAXIMUM_NUMBER_RECIPIENTS_EXCEEDED
SetTimeOut in SuiteScript SSS_INSTRUCTION_COUNT_EXCEEDED
When using the SetTimeOut or Sleep with more than 4 or 5 seconds in the SuiteScript getting the error SSS_INSTRUCTION_COUNT_EXCEEDED Solution: The script increases the instruction count and if it is set to too high then the users will get an SSS_INSTRUCTION_COUNT_EXCEEDED error. It is recommended to stop the script just for 1 or 2… Continue reading SetTimeOut in SuiteScript SSS_INSTRUCTION_COUNT_EXCEEDED
Checkbox to specify that any server-side SuiteScripts and workflows should be triggered for the current CSV import.
Setup -> Import/Export -> Import CSV Records In step1, select the import type and record type and also upload the csv file. Click on the Next button. In the step2, select the import options. Then select the advanced options, Check the checkbox “RUN SERVER SUITESCRIPT AND TRIGGER WORKFLOWS”. It is to specify that any server-side… Continue reading Checkbox to specify that any server-side SuiteScripts and workflows should be triggered for the current CSV import.
Set the Order Status to Closed for Orders in Received Status
When Transfer Order is in ‘Received’ status, the Close Order button still appears on the record as even though the transaction is completed there are still open items on the order, but when the button is pressed, nothing will happen since for NetSuite it appears that the transaction is already completed. The Close Order button removed for Transfer Orders which are in ‘Received’… Continue reading Set the Order Status to Closed for Orders in Received Status
Working with ES6
ES6 functions are only detected in the version 2.1 suite script.Eg: filter(), find() etc. So, while writing library scripts maximum avoid using ES6 functions to avoid errors in other scripts which use this library.
ERROR Custom Module Call Undefined in SuiteScript
In calling Custom Modules in SuiteScript 2.0, make sure to beautify or format your code to avoid undefined calls from the originating script. Sample of a not well-formed Custom Module script: Sample of a well-formed Custom Module script:
SuiteScript – Read Dynamic Sublist Data
Many times, we want to get dynamic information from the user but we do not want an underlying record structure. In this case, we need sublist data. What we learned is that in SuiteScript 2.0, the scriptContext object supplied in a BeforeSubmit operation is carrying along the dynamic data submitted by the user; however… Continue reading SuiteScript – Read Dynamic Sublist Data
NetSuite | Section 2 | SuiteScript
1. Guidelines NetSuite SuiteScript 2.x API guidelines are a set of rules and best practices that developers should follow while using SuiteScript APIs. These guidelines are designed to ensure consistency and maintainability of SuiteScript code, as well as to optimize the performance of SuiteScript scripts. Some of the key consideration before we proceed with customization… Continue reading NetSuite | Section 2 | SuiteScript
NetSuite IF & SO connecting field for Item Sublist in script
Scenario: If we want to get the exact line from which the item in Item Fulfillment is selected (mostly required if same items are added multiple times in Sales order) we can use of ‘orderline‘ field in IF record and ‘line‘ field in SO record. The line field value in SO will be populated in… Continue reading NetSuite IF & SO connecting field for Item Sublist in script