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
creece
03/11/2025, 4:36 PM
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
Simon
03/11/2025, 4:40 PM
Good idea. I will create a very simple project and try to transform it. Thanks again