Skip to main content
Hi,

For my instance of salesforce we have enabled State and Country pick lists.  I am developing an application that creates accounts from another system.  My question is, is there a way to get the list of countries and states via SOQL?  I am using SalesforceSharp.

I need to validate the address prior to creating the record.

Woudl appreciate any help.

Many thanks,

Dominic
4 answers
  1. Jul 8, 2025, 2:31 PM

    SELECT Label,Value FROM PicklistValueInfo WHERE EntityParticle.EntityDefinition.QualifiedApiName = 'Account' AND EntityParticle.QualifiedApiName = 'BillingCountryCode' AND isActive = true LIMIT 1000

0/9000