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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Cannot send Email
im trying to send email through scheduled script using 2.0 but no email is being send, there is no error message or any indication of email being bounced back.
/** * @NApiVersion 2.x * @NScriptType ScheduledScript * @NModuleScope SameAccount */ define([''N/email', 'N/file', 'N/record'], /** * @param {email} email * @param {file} file * @param {record} record */ function( email, file, record ) { /** * Definition of the Scheduled script trigger point. * * @param {Object} scriptContext * @param {string} scriptContext.type - The context in which the script is executed. It is one of the values from the scriptContext.InvocationType enum. * @Since 2015.2 */ function execute(scriptContext) { var userId = /* Employee ID */; var toEmail = ["sample@test.com
0