Hi,
The ‘company’ field on the Task record seems to connect the task to vendor record. Via workflow while populating the create record values have you tried populating the ‘company’ field?
This can also be done via a workflow action script :
var rec = nlapiCreateRecord(‘task’);
rec.setFieldValue(‘title’, ‘3456’);
rec.setFieldValue(‘assigned’, ‘-5’);
// rec.setFieldValue(‘priority’, ‘medium’);
// rec.setFieldValue(‘status’ , ‘1’);
// rec.setFieldValue(‘message’, ‘1232324’);
rec.setFieldValue(‘company’,’141′); // this would be the internal id of the vendor record
nlapiSubmitRecord(rec, true);
Thanks,