Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
setting free-form state in address
Hello,
I am trying to set free-form state values in address.state field so that we can have international addresses. I enabled
the setting in Setup > General Preferences > Allow Free-Form States in Addresses box. It now allows me to enter any text in the state box (it was a
dropdown before). But when I try to set the state from webservice, I cant seem to figure out a way as I am getting compilation errors in c# since state field only takes state enums.
failing line:
address.state = mydatareader["fldState"].ToString();
error:
Cannot impicitly convert type 'string' to 'NSclass.com.netsuite.webservice.state'
0