Any advice on removing a contact from a customer r...
# suitescript
j
Any advice on removing a contact from a customer record? I tried using
customerRecord.removeLine
but receive the error "Field contact is not a subrecord field" If I load in the contact record, I'm not seeing how it's associated with the customer record?
n
In the actual contact record there is a sublist called companies that shows a link to the customer record. however thats just in the UI. I havent figured out in the 10 minutes of playing with it, how to remove that list. Loading the contact record and trying to contact.removeLine({sublistId: 'company'}) doesnt seem to work
In the UI there is a remove button next to the contact but im not sure how it works
b
j
@battk yess that was it, thank you so much