Hey everyone! I work more in the world of SCA Elbr...
# suitescript
m
Hey everyone! I work more in the world of SCA Elbrus web development, mostly front end, and honestly don't write a lot of SS2.0, so I've a question for this channel: I am loading an already existing saved search and simply want to loop through the results and send an email if a certain value is detected. Pretty simple, right? And I can load the search, but i've two problems: (1) The each is not looping. It only shows one set of results in the script deployment execution log, but when I run the saved search in Netsuite there are three. (2) the email fails when testing. I am not getting any errors in the execution log, it just says 'failed' after refreshing the deployment page where you're redirected after executing. I have debugged/logged right up to the email and that shows up in the execution log, so I am assuming I am either writing the email.send() incorrectly, or there is a deployment setting incorrect -- like, you can send an email from the deployment if set to testing, yes? script is in the snippet here. Thanks for any help!