Boban Dragojlovic
10/23/2025, 9:07 PMCeligo AI
10/23/2025, 9:07 PMAI generated answer (using internal Slack threads):Yes, you can create a select field of available saved searches in a Suitelet. However, it requires some work. You can't directly use a saved search as a source for a select field, but you can perform the saved search, and then add select options where the record id is the id in the list and the text value is another column from your search. You can use the
Field.addSelectOption() method to add these options to your select field.
Here's a simplified example of how you might do this:
javascript
var form = serverWidget.createForm({
title: 'My Form'
});
var select = form.addField({
id: 'myselect',
type: serverWidget.FieldType.SELECT,
label: 'My Select'
});
var searchResult = search.create({
// your saved search parameters here
}).run().getRange({
start: 0,
end: 1000
});
for (var i = 0; i < searchResult.length; i++) {
select.addSelectOption({
value: searchResult[i].getValue('internalid'),
text: searchResult[i].getValue('name')
});
}
In this example, we're creating a form with a select field, running a saved search, and then adding each result of the saved search as an option in the select field. The value of each option is the internal id of the result, and the text of each option is the name of the result.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/23/2025, 9:07 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84600836
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835876524
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832763731
Celigo AI
10/23/2025, 9:07 PM