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!
Create Task from Scheduled Script
I just created a task creator using a scheduled SuiteScript. I'm trying to set the "sendemail" field to 'T' so that an email gets sent notifying of the new task. I can't seem to figure out why it wont set it.
Has anyone accomplished this or could shed some light on this issue?
var recordCreated = nlapiCreateRecord('task');
recordCreated.setFieldValue('title', 'Weekly Follow-up');
recordCreated.setFieldValue('assigned', salesRep);
recordCreated.setFieldValue('company', clientInternalId);
recordCreated.setFieldValue('sendemail', 'T');
var taskId = nlapiSubmitRecord(recordCreated, true);
This is an example of the code I am using. It creates the task, but wont set the sendemail field.
Thanks,
0