Hello everyone, When I calling runPaged().count in...
# suitescript
y
Hello everyone, When I calling runPaged().count in script, that time got an error { "type": "error.SuiteScriptError", "name": "UNEXPECTED_ERROR", "message": null, "id": "1e97cd69-256b-4a57-9232-f3b2471ffb04-2d323032342e31322e3138", "stack": [ "create(N/searchPaging)", "map(/SuiteScripts/MR_Create_BY_SalesOrders.js:235)" ],} any one have solution on this?
n
Are you doing it like this?:
Copy code
var resultCount = mySearch.runPaged({
    pageSize: 1000
}).count;
y
Nope.
Actually it also trigger on getRange also. var paragonSearchObjrun = paragonSearchObj.run().getRange({ start: 0, end: 1 }); Currently, i am using this syntax