you already have to load the sales order to do the...
# suitescript
c
you already have to load the sales order to do the line stuff so just set the flag to be true. In the UE before submit look for the true flag and do your thing w/ the lines and uncheck the flag