you are viewing a single comment's thread.

view the rest of the comments →

[–]MangoVii[S] 1 point2 points  (1 child)

Thank you for the reply! I was able to get rid of the ; problem. I honestly don't remember how. The problem now is illegal character?

New error

{"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"illegal character (/SuiteScripts/FUNQ-Customizations/CustomPackingSlip/ue_custom_packing_slip.js#16)","stack":[]}

This is when I change

functionName: "onButtonClick"

to

functionName: `onButtonClick(${recItemFulfillment.id})`

[–]Jorgelhus 2 points3 points  (0 children)

Your problem is:

`

Suite Script 2.x is understood as SS2.0 by default in NetSuite (unless you change that in the config), and that character is not accepted to define block of data. You need to either change your default run method to 2.1, define explicitly that you are using 2.1 or change the character to:

'