Question 11
A user is creating a Suitelet and wants to display a select field, only listing customers with more than 100 employees. The user has created a saved search that returns the names of the customers meeting this criterion and executed it using Search.run(). How can the select field containing just the entries returned by the saved search be added?
- Use Field.setListValues() and pass the search result object as a parameter.
- Pass the search result set object as a parameter to Form.addField().
- Use Field.addSelectOption() and iterate through the search result set.
- Use Form.addField() and pass the saved search id as the ‘source’ parameter.