This topic contains 1 reply, has 0 voices, and was last updated by nrao 9 years, 3 months ago.

  • Author
    Posts
  • #10129

    lauram

    I am creating a workflow for a vendor record so that when it is triggered the workflow will create a task. So far I have gotten it to create a task however it retains no information on which vendor record it was created from. Ideally i’d like to populate the Company/Job field under the related records tab so that the task is associated with the record that created it but having no luck. Is this something that I will just need to script? Any suggestions are appreciated!

    Thanks!
    This is a cached copy. Click here to see the original post.

  • #10130

    nrao

    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,

You must be logged in to reply to this topic.