jen
08/18/2026, 10:20 PMcustentity field that is of type Multiple Select (a list of associated custom records). Both vendors I’m testing on have several values selected (10-20 each).
My test code looks like this (exact same, except different vendor)
// Test 1
search.lookupFields({type: record.Type.VENDOR, id: 42260, columns: [‘custentity_my_multiselect’]}).custentity_my_multiselect;
// Test 2
search.lookupFields({type: record.Type.VENDOR, id: 45160, columns: [‘custentity_my_multiselect’]}).custentity_my_multiselect;
The first test returns an object with two properties, value and text, both of which are comma-separated strings of integers and text respectively, like so:
{value: ‘1,2,3’, text: ‘first thing,second thing,third thing’}
The second test returns an object with an array of text/value pairs, where the values are integers expressed as strings, and text are just strings, like so:
[{value: ‘4’, text: ‘fourth thing’}, {value: ‘5’, text: ‘fifth thing’}, {value: ‘6’, text: ‘sixth thing’}]
What the heck is going on here? Why are the objects from the same call not coming back in the same format?Anthony OConnor
08/19/2026, 12:19 AMcreece
08/19/2026, 6:00 AMNElliott
08/19/2026, 7:34 AMjen
08/19/2026, 2:09 PMraghav
08/19/2026, 2:52 PMjen
08/19/2026, 3:03 PM