In Suitescript 2.0 I want to check if an ID does not match with one of the IDs in the array below: In the debugger I see that .0 is added to every value in the array : Now if my ID is 1 and I do the following check: then this will always be true, because the numbers have
Tag: suitescript2.0
How to get Sales Order ‘shipaddresslist’ value from Transaction Saved Search/Suitescript Search?
In Netsuite, the Sales Order record type contains a field called “shipaddresslist” which contains the Customer Address Internal ID associated with the selected Customer Address. Unfortunately, there is no search column for Sales Orders that will get the value of “shipaddresslist,” so I had to find a workaround. Using SuiteScript, I’ve been able to get the value of this field
Write a string containing commas and double quotes to CSV
I’m trying to produce a Google Shopping feed of 30,000+ items in NetSuite, a CRM system that runs server-side JavaScript that it calls Suitescript 2.0. Essentially, it’s just JavaScript with a few more restrictions. I’ve been tasked with outputting this product feed as a CSV. The problem is that the product descriptions of these items contain variables amounts of commas,