Can you write a suiteql to list all savedSearches
# ask-stanley-ai
r
Can you write a suiteql to list all savedSearches
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you can create a search on saved searches in SuiteScript. However, it's important to note that you can't load a
saved search
search without specifying the type in
search.load
. Here is a sample code snippet that might help you:
Copy code
javascript
var search = require('N/search');
var mySearch = search.create({
   type: search.Type.SAVED_SEARCH,
   filters: [
      // your filters here
   ],
   columns: [
      // your columns here
   ]
});
var resultSet = mySearch.run();
Please replace the comments with your actual filters and columns. This code will create a search on saved searches and run it. The results can be processed as per your requirements. ****** 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.827625155
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822267354
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820621252
Please provide your feedback on this answer.