I have a search that gets transaction lines. One o...
# suitescript
a
I have a search that gets transaction lines. One of the fields I get is
options
which is a native netsuite field (https://system.netsuite.com/app/common/custom/itemoptions.nl?whence=). (https://system.netsuite.com/app/help/helpcenter.nl?topic=LIST_ITEMOPTION) I am trying to use this information to display in a pdf, but the results give strings some of which are not xml compatible. Is there a way to parse the results to be xml friendly or to search for these options directly?
s
Have you tried using the
N/xml
module, specifically the esacpe function?
a
No. I didn't know about that function. But I just found the exact thing I was trying to do in this article http://www.netsuiterp.com/2019/01/retrieve-item-options-value-on-sales.html