When loading a saved search, is there a way to som...
# suitescript
s
When loading a saved search, is there a way to somehow remove the "label" from the column when it is not directly specified? I'm converting the search to json and I want internalid to stay internalid and not Internal Id. But I want col_my_Field to return as "myField" it still can
e
You could possibly use the replacer function with
json.stringify
b
the question is a long way of asking how to tell the difference between a custom label and the standard label
s
Yeah, that's not possible from what I can see. I was hoping netsuite would have a method that would do that for me. I can't see it in the docs so this was just a long shot hopeful that someone knew something I didn't
Hard part ehcanadian is like what battk said. I don't know which one is a custom label and which is the netsuite label. If possible, that's what I'd have to figure out
b
make a copy of the search
without copying the labels and then run it
the columns on the result should have the standard labels
s
in code or in netsuite?
b
code
s
Does copying a search remove custom labels?
b
depends how you do it
either way, make a copy of the search, without the labels
the columns on that search should have the standard labels