```let soSearch = search.load({id: searchId}); let...
# suitescript
c
Copy code
let soSearch = search.load({id: searchId});
let resultSet = soSearch.run();
return resultSet.asMappedResults();
TypeError: resultSet.asMappedResults is not a function [at getSearch (/SuiteScripts/mapTest.js3534)] headbang UPDATE: asMappedResults is only available in n/query and NOT n/search
s
by the way, if you used TypeScript you'd know that before you uploaded/ran the script.
(and if you used NFT, it does make it trivial to get all search results back as mapped JS objects - and works with > 4000 results too 🙂 )
c
You're twisting my arm 😄