Morning All. When a new Lead/Prospect/Customer rec...
# suitescript
k
Morning All. When a new Lead/Prospect/Customer record is created via the UI there is the option to add a Contact Record in a sublist. I am working within my Suitelet to create a customer record and a contact record and wondered what the best way of doing this would be. I am working in Dynamic mode so I assumed I could just
.selectNewLine
and then
.setCurrentSublistValue
. I haven't tested my code as I cannot find the id's of the fields for adding a contact line within the UI.
z
I don't think contacts is available as sublist. A simple way to achieve this is to create a contact record separately using
record.create
and then link it with lead, prospect or customer record using
rec.setValue({ fieldId: 'company', value: 12134 });