<@UBZG6KKFB> i wouldn't expect a response. you gen...
# suitescript
r
@t_gdb i wouldn't expect a response. you generally want to provide the script type, entry point, record type, etc. things you've tried that didn't work is also a show of good faith that is appreciated.
t
@reptar yes indeed. Actually I foud the response. I was trying to do in a UE
Copy code
search.lookupFields({type: 'salesorder', id: 1048438 , columns: ['discountitem']});
but it didn't work. So I did
Copy code
var so = record.load({type: 'salesorder', id: 1048438} );
log.debug('soinfo', so.getValue('discountitem'));
and it's working.
r
Untitled
s
if the UE is on the SalesOrder, I'd
Copy code
const so = new SalesOrder(ctx.newRecord)
so.discountiem ...
to prevent from reloading the record.
t
but when you use a lookupField function on discountitem, it's not working.