Hi I am doing a search that looks up fields from a...
# suitescript
d
Hi I am doing a search that looks up fields from a custom record and yields.
[{"account":"815","item":"333"}]
I would like to add in the text label for account, how do I do that with a search? my search options
Copy code
{
  "type": "customrecord_config_line",
  "columns": [
    {
      "name": "custrecord_conf_account"
    },
    {
      "name": "custrecord_conf_item"
    }
  ],
  "filters": [
    {
      "name": "isinactive",
      "operator": "is",
      "values": false
    }
  ]
}
n
@Daniel Eliassen include the label in your column such:
Copy code
search.createColumn({name: "location", label: "Location"}),
b
use getText instead of getValue
😁 1
n
Oh he didn't mean "label" he meant text value, that makes sense 😄 I really should not take people asking for technical help so literallly...
d
thanks alot for helping out guys, solved it! thanks