I need help in editing body field address subrecor...
# suitescript
t
I need help in editing body field address subrecord on Sales Order. Can anyone help ? I need to void the phone number when a new address is added.
b
what have you tried
t
I have tried editing the subrecord with nlapiEditSubrecord('billingaddress'); but it says billingaddress not a subrecord field.
Also I have tried clearing that on customer record on user event. it works if I check it on customer only, but it doesn't when I add address from sales order.
b
are you trying to modify the address on the customer>
or a custom address on the sales order?
t
Yes I have tried on customer when new address is added on salesorder
New address is added to customer , but doesn't trigger the user event on Customer so its failing.
b
not very surprising, doing changes from other records tends not to trigger user event scripts
change the customer record after the sales order is saved
using a user event script on the sales order
or use a scheduled script to change the customer on a schedule
t
I got it, Thanks for you help !