RE: Can I use search.lookupFields method with custom record types?
I’d like to use the following, but with a custom record type, not SALES_ORDER
var fieldLookUp = search.lookupFields({ type: search.Type.SALES_ORDER, id: '87', columns: ['entity', 'subsidiary', 'name', 'currency'] });
Is it possible?
Yes, you set the script id of the record to the type parameter. For example, if you have a record with script id customrecord_example, you could do the following:
var lookup=search.lookupFields({
type: 'customrecord_example'.
id: 10,
columns: ['custrecord_col1','custrecord_col2']
});