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?

Rookie Asked on October 3, 2019 in SuiteScript.
Add Comment
1 Answer(s)

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']
});
Rookie Answered on October 3, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor