This happens because there is an existing Defect wherein if you don't specify the 2nd parameter in nlobjSearch.saveSearch, it is set to null when viewed in the Search Definition page.
To resolve the issue, specify the 2nd parameter (scriptId) when saving the search. To illustrate:
var search = nlapiLoadSearch('customer', scriptId);
var id = search.saveSearch('Modified Search', scriptId);
No comments:
Post a Comment