Hi! in a beforeSubmit, when the a sublist was empt...
# suitescript
e
Hi! in a beforeSubmit, when the a sublist was empty and was just now populated, the
Copy code
newRecord.getLineCount({ sublistId: 'contactroles' });
will not get the sublist that was just put in. Any ideas?? thanks!
w
The before submit is bound by the role of the user submitting it; So if the user/role does not have permission to see the contactroles or if the list is hidden by the form that they are using; then the list will not return. The afterSub runs with your script's permissions, so can see that sublist.