Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
How to Update Saved Search via Script
Hi,
I am trying to update the filters of a set of saved searches using a generic saved search.
Here is my loop:
for (var i = 0; i<selectedMarkets.length; i++){
var selectedSearchId = marketplaces[selectedMarkets[i]].searchId;
log.debug('Saved Search',selectedSearchId);
var searchObj = search.load({id:selectedSearchId});
searchObj.filters = filter;
log.debug('Generic Filters in Loop',filter);
log.debug('Updated Filters',searchObj.filters);
searchObj.save();
}
When I look at my log, it tells me that "Updated Filters" has exactly the same array as "Generic Filters in Loop", as if the script has indeed updated the filters based on the generic saved search filters. However, the Saved Search do not actually update.