speaking of that.... I nearly had a nervous breakd...
# suitescript
s
speaking of that.... I nearly had a nervous breakdown trying to troubleshoot an issue yesterday before i discovered this gem.
search.LookupField
, when used on a multiselect field, will return 2 entirely different data structures, depending on the Labels/Text of the selected values. Those without any commas:
Copy code
[{"value":"3091","text":"Test"},{"value":"3094","text":"Test without comma"},{"value":"3101","text":"Test 2"},{"value":"3114","text":"Test 3"},{"value":"3153","text":"Test 4"}]
Those with any commas:
Copy code
{
  "value": "3091,3094,3101,3114,3153",
  "text": "Test,Test , with comma,Test 2, Test 3,Test 4"
}