I'm doing a simple transform let _soid...
# suitescript
s
I'm doing a simple transform let _soid = record.transform({ fromType: record.Type.JOB, fromId: _projectid, toType: record.Type.SALES_ORDER, isDynamic: true, }); it return You can not initialize salesorder: invalid reference 1363469. Any idea what I'm doing wrong ?
c
Can you manually create the Sales Order with the same info from the Job in the UI? Hard to say which field the ID is referencing but typically its invalid data/setup where the ID its wanting to reference isn't available to select.
s
Good idea. I will create a very simple project and try to transform it. Thanks again
e
Do you know what record the ID
1363469
represents?
s
It's the project (JOB)
1