//find PO if it exists values.purchase...
# suitescript
m
//find PO if it exists values.purchaseOrderId = params.record.getSublistValue({ sublistId: 'purchaseorders', fieldId: 'id', line: 0 });
l
the sublist
purchaseorders
is only "created" after saving the VB
I need to capture that in the creation, in a beforeSubmit event
m
Oh I missed that line
n
Have you checked the newRecord to see if the sublist is there? (and has values)
l
Yes, I checked
the sublist doesn't even exist while creating the VB