If I'm on a customer and do getValue("shipcountry"...
# suitescript
s
If I'm on a customer and do getValue("shipcountry") it returns "US". How can I take that value and get countries id so that I can use it on a search
d
Use the N/query to get it.
You probably want the
uniquekey
from this result
Copy code
var result = query.runSuiteQL({
    query:"SELECT * from country where id = ?"
    ,params:["US"]
}).asMappedResults();
❤️ 1
s
That's awesome.