Rob
10/09/2024, 2:16 PMCeligo AI
10/09/2024, 2:16 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** Based on the conversations, it appears that you cannot directly modify the search criteria of an existing saved search via SuiteScript. When you load a saved search in SuiteScript using
search.load
, it should retrieve the filter criteria and the result columns defined in the UI saved search. However, any changes you make to the search criteria in your script will not be reflected in the saved search in the UI.
If you are seeing discrepancies between the results of the saved search in the UI and when run via SuiteScript, it could be due to differences in the filters or columns. It's also worth noting that the search results page in NetSuite is not scriptable, so you cannot execute a script on the page of saved search results to trigger some action or modify the data.
If you need to modify the search criteria or results, you may need to recreate the search in code. This is a common SuiteScript task and there are extensions available that can assist with this. However, this will not update the existing saved search in the UI, but rather create a new search with the modified criteria or results.Celigo AI
10/09/2024, 2:17 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847352684
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846459
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846008599
Celigo AI
10/09/2024, 2:17 PM