how should i get the saved search id in script?
# ask-stanley-ai
c
how should i get the saved search id in script?
c
AI generated answer (using internal Slack threads):
To get the saved search ID in a script, you can use the
search.load
method in SuiteScript. This method loads a saved search. You need to provide the ID of the saved search as a parameter to this method. Here is an example:
Copy code
javascript
var mySearch = search.load({
   id: 'customsearch_my_saved_search'
});
In this example, 'customsearch_my_saved_search' is the ID of the saved search. Replace it with the ID of your saved search. Please note that the ID of the saved search is the script ID, not the internal ID. You can find the script ID of the saved search in the NetSuite UI by navigating to the saved search and looking at the ID field. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854059458
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846803188
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84386766
Please provide your feedback on this answer.