I have created the lookup search on customer record to get the particular field value.while putting obtained result in alert it showing as [object,object]. and i have converted result to string JSON stringfy method.
The alert showing the result like this :
{"custentity_cseg_customer_categ":[{"value":"6","text":"DTC"}]}
But want the values for the key "text" : Example : DTC in the above code
Code:
Suitescript 2.0 version:
var customerCategoryFieldLookUp = search.lookupFields({
type:'CUSTOMER' ,
id: 13,
columns: ['custentity_cseg_customer_categ']
});
alert("CustomerCategoryFieldLookUp:"+ JSON.stringify(customerCategoryFieldLookUp));