I'm creating a custom record (with child record as...
# suitescript
s
I'm creating a custom record (with child record as another custom record) . In one run I'm inserting (creating main record) more than 10k lines to that sublist record By using ( mainrec.selectnewline('recmachsublistid') and commitline(...). But when I load the same record , and try to add sublist records to it using selectnewline and saved. The Sublist lines are not adding to the main record (Note : but by creating the custom record directly and linking to the parent record is working . I can see the line added to the main record sublist) My questions : 1. By loading a custom record with more than 10k lines , Is there a restriction to add lines after that many lines in custom child record line ? 2. Is there any alternative to add more lines to the custom record by loading the custom record (other than directly creating the child first and linking to parent)? Am I missing something ?.please.guide me .. thanks in advance . Good day.!.
b
what does the code look like
s
Hi @battk. The code is record.create(custom record) , a loop which inserts more than 10k lines using selectnewline(childsublist) , commitline. - and record gets saved. Again the same parent record has to be loaded , and add another set of child line records using same selectnewline commintline and save. The 2nd part is not working
message has been deleted
b
its a fair guess
if you want me to confirm
you need to do better than give descriptions of your code
s
Thanks mate @battk. Actually I don't have the code acces now. That's why explaining only the part.