Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to 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,