Automate the CSV imports via Suitescript

using scheduled script we can automate csv import.The file to be imported will be stored in the filecabinet. Solution: Step 1: a) Create a Field Map for the CSV File Note: Field Mapping offers a 1-to-1 relationship between the fields on the CSV File and NetSuite Fields. b) Navigate to Setup > Import/Export > Import… Continue reading Automate the CSV imports via Suitescript

Adding note records or user notes to a record

Adding note records through UI We can add user notes or note records to NetSuite records such as employees, customers etc. This can be done through NetSuite UI by going to ‘Communication’ subtab and then ‘User Notes’ under the subtab. We can add a new subtab with a title and memo(description) values.Once a note record… Continue reading Adding note records or user notes to a record

Displaying the availability of items on a sales order from a warehouse

//Info: CDUS-1010 REQUIREMENT  Would NetSuite be able to show us how many items we have in both warehouses at the same time when we type the SKU? So, when we are entering orders, the system automatically shows us how many items we have in either Miami or Dallas warehouse depending on the primary location or… Continue reading Displaying the availability of items on a sales order from a warehouse

Add Button based on Record Status

//Info:APCN-214 Instead of applying to every record, we may need to add buttons to record pages that only apply to specific statuses such as Open, Processing, and so on.In this case, we created a Button to Quote record that will appear only if the status is not Voided & Expired.

How to stop a map-reduce while running

There is no direct way of stopping a map-reduce script while running. If the script is in queue and it is not started then we can stop it by using the ‘Cancel’ option in Map/Reduce Script Status page. To get this page, go to script deployment of the map-reduce script and click on ‘Status Page’… Continue reading How to stop a map-reduce while running

How to fix ‘Syntax error: missing ; before statement’ for suitescript documents version 2.0 and below

Suitescripts written in version 2.0 or below shows this error ‘Syntax error: missing ; before statement’ even when there is ‘;’ present after every single line of code. For example check this client script sample code in suitescript v2.0.(This is a sample code and not used for any specific purpose) /** *@NApiVersion 2.0 *@NScriptType ClientScript… Continue reading How to fix ‘Syntax error: missing ; before statement’ for suitescript documents version 2.0 and below