Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
System sending emails for tasks created by script, regardless of if 'sendemail' is F
I have opened up a case with NS support for this last Thursday, but have yet to hear back from them (case # 1388121).
Please provide detailed steps to reproduce the problem:
var newRecord = nlapiCreateRecord('task');
newRecord.setFieldValue('assigned', 'user_id_here');
newRecord.setFieldValue('company', 'company_id_here');
newRecord.setFieldValue('title', 'test- delete me');
newRecord.setFieldValue('sendemail', 'F');
var id = nlapiSubmitRecord(newRecord);
Result:
The assignee is still receiving and autogenerated email from NetSuite informing them that the task has been assigned to them. This did not happen prior to the new release. This only happens when the task is created by script. Creating a task through the UI obeys the checkbox.