I have a beforeSubmit that loads a sales order in ...
# suitescript
w
I have a beforeSubmit that loads a sales order in dynamic mode. I then use a selectNewLine to start adding lines. No issues. I can add the lines, commit and then save. What I'm trying to get is the line id for that new line so i can set it on different record. What i have been trying is getCurrentSublistIndex which gives the Index line starting at zero, then after my commit and save I'm am using selectLine with the line being the one from getCurrentSublistIndex to help pull the 'line' field. I can't seem to get it to give that line value. It works for the Index lines before it.