pen one
04/26/2021, 2:40 PMmySearch.run()
.getRange(0,1000)
.forEach(function (result) {
var myResultId = result.getValue({name: "internalid" });
if (myResultId == "") {
dialog.alert({
message: 'No results found'
})
}
battk
04/26/2021, 2:41 PMtuli
04/26/2021, 2:43 PMcreece
04/26/2021, 2:45 PMbattk
04/26/2021, 2:47 PMbattk
04/26/2021, 2:47 PMpen one
04/26/2021, 3:01 PMvar searchResultCount = mySearch.runPaged().count;
console.log(searchResultCount);
if (searchResultCount == 0) {
dialog.alert({
message: 'No results.'
})
}
mySearch.run()
Now whether or not this is the correct way to do it I am not sure but it achieved my goal.battk
04/26/2021, 3:04 PMbattk
04/26/2021, 3:04 PM