<@U2APNRN91> - add logs and check if you have corr...
# suitescript
l
@francis - add logs and check if you have correct id (searchResult.id) as I have seen strange things in a way NS parses data from search. Next thing
Copy code
[orderExist, internalId] = orderAlreadyExists(searchResult.values.name)
is written in ES6 - does it work for you? - NS supports ES5 only, so it should only work if you compile it with babel, but if that is true check line numbering as error may be in a different line.
j
huh, looks like it works guess this means NetSuite server is using at least Rhino 1.7R3 (released 2011) https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/New_in_Rhino_1.7R3
👍 1