Can we get all the state's internal id in suitescript?
w
wbermudo
03/12/2020, 1:00 PM
try getField('state').getSelectOptions();
a
AB
03/12/2020, 1:01 PM
let me check
AB
03/12/2020, 1:19 PM
@wbermudo We want to get the state from customer, so when I used
var subRecord = nlapiViewCurrentLineItemSubrecord('addressbook','addressbookaddress');
var state = subRecord.getField('state');
then I will get an erro message.
AB
03/12/2020, 1:21 PM
How can I get the internal id of the state from the customer