Add and deploy the script. Reference my article “Quick Guide to Adding and Deploying a Script in NetSuite” if needed.
Create a CSV file for your import and drop it into the the folder you created. Run the script. Now go to the CSV Job Status page by going to Setup->Import/Export->View CSV Import Status. You will see the status of your import.

Homework
You could improve this script by using script parameters for the CSV folder ID and the mapping ID. You can also create a multi file CSV Import and then use scriptTask.linkedFiles to import them. Review the NetSuite help to get more information about using scriptTask.linkedFiles.
Conclusion
This article demonstrates one specific task which is part of the N/task module. I encourage you to review the other tasks that are available. It’s also worth noting that the CSV Import task can only be submitted from bundle installation scripts, scheduled scripts, and RESTlets.
If you need help with customizing NetSuite, please contact Suite Tooth Consulting here to set up a free consultation.
If you liked this article, please sign up for my newsletter to get these delivered to your inbox here.
