Wasting so much time on this.
Does anyone know the trick for setting a 'Roles' line item in a beforesubmit user event? I can't do it in the client as the roles sublist is not supported (even though I can get a count). I CAN do it if I use the nlobjRecord and load the record and set the list, but I can't do it in a beforesubmit.
Funny thing is that I can test the count before I set the list line and it will show 0. After I set the line, the count is 1, indicating that I have successfully set the line, but when I view the record after save, there is no role set.
Anyone else been challenged by this rather common need to set roles via script. Do not understand why this list is not exposed in the first place on client side. Life would be so-o-o-o-o-o much easier...