How to use search.lookupFields for a custom record...
# suitescript
n
How to use search.lookupFields for a custom record. I need to add the record internal id as well as the recordtype id? 🤔
p
yes. Example: var fieldLookUp = search.lookupFields({ type: search.Type.SALES_ORDER, id: '87', columns: ['entity', 'subsidiary', 'name', 'currency'] });
n
Thanks but I have a custom record which i want to load, This is a sales order record you are reffering.
k
Just use 'customrecord_id' on the type option.
p
just replace search.Type.SALES_ORDER with your your customrecord id
k
SNAP!!
n
Thanks @karlenigma & @Paper Plane Netsuite Group