hi, one question, I'm doing a saved search and I w...
# suitescript
i
hi, one question, I'm doing a saved search and I want to check if the saved search returns anything, so I do this
if(Object.keys(searchResult).length !== 0 )
but I get the next error
TypeError: Expected argument of type object, but instead had type object
Is that the correct way to check if a saved search returns empty?