Knowing the internal id, I want to get the 2 character abbreviation for a state, "AL" for "Alabama", and get the 2 character country code. I found i can search the
state
record:
Copy code
var s = record.load({type: "state", id: 0}):
s.getText({fieldId: "shortname"});
s.getText({fieldId: "country"});