In NetSuite, user can put almost everything in name field, and NetSuite did a pretty good job on helping exported CSV file with correct format.

If we put special character in the field

When we export this field into CSV file, it will actually add double quote at beginning and end, also escape double quote in the field.


User Story: As a SA, I want to have two drop-down list in Item record, 1 is list of city, 1 is list of district, so that I can make sure user won’t select wrong district.

  1. Create City custom list.


Conclusion first,

If you’re using docker with selenium and python to automatically download file like me, and you cannot get any result back, here is something you can try:

  1. check download destination permission is okay for chromium, you can use chmod -R 777 to fix it.
  2. If you’re using headless mode, you’re not able to download anything.
  3. add display in your container
export DISPLAY=:20
Xvfb :20 -screen 0 1366x768x16 &

4. Use `xvfbwrapper` handle headless display

from xvfbwrapper import Xvfbv_display = Xvfb(width=1280, height=740)
v_display.start()
...

5. setup default download folder and disable popup

chrome_options = webdriver.ChromeOptions()
prefs = {…


Today, I’m going to introduce a field setting that impact your SuiteScript. All code below is written by SuiteScript 2.0.

For my scenario, we create a Transaction Line Field for SalesOrder and Item Fulfillment, this field help us pull some information form Inventory Item so that can help us on after submit user event.


Sometimes we need update record in afterSubmit section, such as update async response into the record.

TL;DR;

use record.submitRecord in afterSubmit as well.

we all know, there are 3 entry point in userevent, beforeLoad, beforeSubmit, afterSubmit

If you’re creating a record, you’ll get to be generated as transaction id in beforeSubmit section, so if you want to know the transaction id, the only chance is afterSubmit .

What happens if we just update the record in afterSubmit , it will popup a message says user editing the record although it *did* do update field, but with terrible UX. So we need a way to update the record in afterSubmit without any warning.

After a little bit of research and read API, found we can use record.submitRecord function, this function won’t cause any warning and work as expected.


Before we start, make sure you have homebrew installed.

  1. open terminal.exe, run following command
  2. brew install maven
  3. mkdir -p webdev/sdf/sdk
  4. cd webdev/sdf/sdk
  5. download two jar file into this folder, you can download directly from browser or using command line.
  6. https://system.netsuite.com/download/ide/update_18_1/plugins/com.netsuite.ide.core_2018.1.1.jar (NEED LOGIN TO NETSUITE)
  7. https://system.netsuite.com/download/ide/update_18_1/plugins/com.netsuite.ide.eclipse.ws_2018.1.1.jar (NEED LOGIN TO NETSUITE)
  8. download and extract CLI supplemental package to SDF folder we create above, only need
  9. jar xf com.netsuite.ide.eclipse.ws_2018.1.1.jar axis.jar NetSuiteWebService.jar
  10. mvn exec:java -Dexec.args=
  11. if things going well, you should see CLI help.
  12. use any file editor open sdfcli file, replace SDFSDK_PATH with the location of your sdk path.
  13. chmod +x sdfcli (MAC/LINUX ONLY)
  14. After all, your sdk folder should look like this

Next, I’ll try to create a project and setup token base Auth.

Lin Shih Hao

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store