Hello all, I am using saved searches to notify ext...
# general
s
Hello all, I am using saved searches to notify external software of various things, works well except when I need to know if there is NO data matching the saved search criteria. When that happens NetSuite just says "No Search Results Match Your Criteria." and because the saved search has produced no results there is no search to send, meaning the external piece of software looks at the last result when there was results! The clients NetSuite support company said "NetSuite does not have a native function to change the message on a blank search." Anyone know of a way to make the search tell me "0" rather than the "move along here, nothing to see here" default message?
w
You can write a Scheduled Script, which gathers the data and sends it over to your application. So you can choose whatever you send. Or depending on the possibilities of your application, you can communicate over a RESTlet, where your application requests for live data when required.
s
Hello Wim, thanks for the reply! I am already doing that, but the problem is with the saved search I am sending having no results.
w
You’re scheduling through the options in the saved search? Not by your own written scheduled script? If you would use a scheduled script, you can run the search within the scheduled script, and if there is no data, you can still send out the email with whatever content you need.
s
Thanks Wim, yes you're right, I can see that now, the limitation is with the script I am using, not NetSuite itself.