Skip to main content
Dominic Cotton (VPS) 님이 #Net Development에 질문했습니다
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개
  1. 2025년 7월 8일 오후 2:31

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

0/9000