How do I getvalue for this search result? ```{ ...
# suitescript
s
How do I getvalue for this search result?
Copy code
{
   values: {
      "GROUP(internalid)": [
         {
            value: "806849",
            text: "806849"
         }
      ]
   }
}
e
Result.getValue() has a
summary
option:
Copy code
result.getValue({
  name: 'internalid',
  summary: search.Summary.GROUP
})
💯 1
t
The other way I prefer is getting values using the .columns property.
m
@suiteExperimenter this looks part of the context from a Map/Reduce script. If you've already got this object to work with, then you would do something like this:
Copy code
var context = {
    values: {
        "GROUP(internalid)": [
            {
                value: "806849",
                text: "806849"
            }
        ]
    }
};

const value = context.values['GROUP(internalid)'][0].value; // 806849