I'm getting this error when I create a component on the assembly build
"Rbuild.selectNewLine is not a function".
Here is the code
var Rbuild = record.create({type: record.Type.ASSEMBLY_BUILD});
.
.
Rbuild.selectNewLine({sublistId: 'component'});
Rbuild.setCurrentSublistValue({sublistId: "component", fieldId: "item", value: '1234'});
Rbuild.setCurrentSublistValue({sublistId: "component", fieldId: "linenumber", value: 0});
Rbuild.setCurrentSublistValue({sublistId: "component", fieldId: "quantity", value: 10});
Rbuild.commitLineItem({sublistId: "component"});
Any help will be greatly appreciated