This topic contains 1 reply, has 0 voices, and was last updated by chanarbon 7 years, 5 months ago.

  • Author
    Posts
  • #6584 Score: 0

    jmitchell
    • Contributions: 0
    • Level 1

    When I retrieve an address object, the country is specified as an enum such as “_unitedStates”, how can I convert this to a country name and/or code?

    I tried using getSelectValule, but it only returned the name and code, not the enum value.

    Are the only options to either hard-code the country list or attempt to parse the enum into a country name?
    This is a cached copy. Click here to see the original post.

  • #6585 Score: 0

    chanarbon
    • Contributions: 0
    • Level 1

    Hi @jmitchell,

    For that, I would suggest you to parse the enum of the country name which you can check in https://system.netsuite.com/help/hel…m/country.html it is already an object available once you have set the NetSuite Suitetalk as a web reference or you have generated stubs using libraries like Axis

You must be logged in to reply to this topic.