Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
For Loop not iterating through sales team sublist
I'm working on an automation that will email a request to a user if they are listed with a specific role as a sales team member on an opportunity. For some reason, I cannot even get this for loop to return the sales team members on an opportunity when the script is run. I'm sure I'm missing some small item, I would like to get a second set of eyes on the code to see if anything can be spotted.
function cs_EmailEngineer(){ console.log("Request SOW Button Pressed"); nlapiLogExecution('debug', 'email sent', 'Email was sent'); console.log("It got passed the email was sent log execution line"); nlapiSendEmail(14240, " 0