---
schema_version: "1"
id: ffcb1d270f5b146ec7e442f12ee976df794ff3b9988bc7c8322585ba02c0268c
title: GeoState
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_geostate.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_geostate.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 51c642aa027c680dbdfa060d5acdfacd37c52c349e87dc476aeba324e7c3335e
description: Represents a state. This object is available in API version 57.0 and later.
---
# GeoState

Represents a state. This object is available in API version 57.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

The GeoState object is available if B2B Commerce or D2C Commerce is enabled.

## Fields

| Field | Details |
| --- | --- |
| Description | 
Type

textarea

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A brief description of this record.



 |
| GeoCountryId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the GeoCountry associated with this GeoState.

This field is a relationship field.

Relationship Name

GeoCountry

Relationship Type

Lookup

Refers To

GeoCountry



 |
| IsoCode | 

Type

string

Properties

Create, Filter, Group, Sort

Description

Two-letter ISO code of the state as defined in the org’s State-Country picklist. This field is unique within your organization



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed data in this record, a record related to this record, or a list view.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, it's possible the user accessed data in this record or list view but didn't view it directly.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Nillable, Sort, Update

Description

The name of the state that corresponds with the ISO code.



 |

#### See Also

- [GeoCountry](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_geocountry.htm "Represents a country. This object is available in API version 56.0 and later.")