when try use id returned nlapisubmitrecord parent throws invalid id. copy (after nlapisubmitrecord) has no id field when examining in debug console.
my question how do this, or copy projecttask , include children in suitescript (preferably client script).
cheers, pj
you can use project task parent if has no resources assigned. otherwise following works:
var subtask = nlapiloadrecord('projecttask', subtaskid); subtask.setfieldvalue('parent', parentinternalid); nlapisubmitrecord(subtask); where ids subtaskid , parentinternalid depends on doing. if doesn't can post code give more context question?
Comments
Post a Comment