hi im currently builidng a script to build our ase...
# suitescript
s
hi im currently builidng a script to build our asembly this is the code that is returning error
Copy code
var subList = assemblyBuild.getSublistSubrecord({
              sublistId: "component",
              fieldId: "componentinventorydetail",
              line: i,
            });
Copy code
{
   type: "error.SuiteScriptError",
   name: "TypeError",
   message: "TypeError: assemblyBuild.getSublistSubrecord is not a function [at Object.map (/SuiteScripts/assembly/buildassembly.js:132:41)]"
}
b
use Record.getCurrentSublistSubrecord while the record is in dynamic mode
s
I always confuse the functions of dynamic
b
the sublist ones are named the same as the standard ones with the word current in it