Questions tagged [country-and-state]

The tag has no usage guidance.

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
58 views

Account History tracking shows codes instead of full names after enabling State/Country picklists

I'm seeing that changes made on an Account after we have enabled State & Country/Territory Picklists on our sandbox default to showing the shortcodes for Country & State. Isn't it possible to ...
3
votes
0answers
641 views

Lead.Country value is null in beforeInsert with state country picklist turned on

I have code called from the before update/before insert triggers that looks at the Country value, and if found or is changed, we call some custom code to find a matching record in a custom Territory ...
2
votes
1answer
182 views

Why does the DependentPicklists class returns empty Map when trying to output Country and State picklist?

We are implementing the DependentPicklists class found in another answer on this site. Our org has State and Country picklists enabled, so we are trying to get this to work using the Contact....
2
votes
0answers
184 views

Issue with Datacloud.FindDuplicates & County-State-Picklist & PURGE Data

We have a strange issue arising in the context of the Salesforce Standard Deduplication functionality. It happens only, when Country-State-Picklist are enabled and a record (Account) is set to a ...
1
vote
1answer
36 views

Using Apex to query Country Picklist Integration Values

We are using global country picklist in our org. For historical reasons, some of our countries have a difference in the name of the country and the integration value of the country. From Apex, I ...
1
vote
0answers
17 views

Additional geographical area on State

I'd like to add additional information on the State in Salesforce, for example the macro-area it belongs to, so that it can be used in any report, view, feature that make usage of an Address / State. ...
1
vote
2answers
3k views

Error: There's a problem with this state, even though it may appear correct. Please select a state from the list of valid states

I am updating records through batch class. I have state/Country picklist enabled for my ORG, however for few set of records BillingState picklist is having following values i. UNKNOWN VALUE ...
1
vote
0answers
1k views

Find whether the state code is related to the Country code

When state/country picklists are enabled, in an apex class can i find whether the state code is related to the country code. Currently if no check is done. I'm getting the below error in the visual ...
1
vote
0answers
119 views

Mass Update And Mass Edit From List View clashes with State/Country Picklists

The following appears when I click on “Mass Update” in a list of recently created leads: core.apexpages.exceptions.ApexPagesHandledException: Object type not accessible. Please check permissions and ...
1
vote
0answers
68 views

State and Country picklist scan result issue

I have used the option "Scan your org" in State and Country Picklists to get the address list and customization list (VF and APEX used) in that list one VF page is showing up which is not using city, ...
1
vote
0answers
302 views

Why is Serbia not among selectable countries in Salesforce.com?

So I decided to join Salesforce Partner Community, however, I can't complete my application as I'm from Serbia and there's no Serbia as an option among the list of available countries. Does anybody ...
0
votes
1answer
43 views

Account Billing Address Picklist without State and Country Picklists

I'm trying to replace the Standard BillingCountry field on the Account with a picklist, but it seems I can't remove the standard field and replace it with a custom picklist - does anyone have any idea ...
0
votes
0answers
16 views

Country and state picklist with lightning web components

How can I capture the country and state picklist in lightning web component picklist input? Please help me to give some guidance. Thanks Sunil Kr. Gupta
0
votes
0answers
38 views

Country/State Picklist Management through trigger

I am trying to map country and state from one custom object say 'User Submission' to Account's billing address. My custom object has more values of countries and states than standard Country/State ...
0
votes
0answers
60 views

Unable to convert a lead if country if country is not defalut country

few dacks back we have enabled country & state picklist values. So, when trying to convert a lead with a country called Canada they are facing an issue. because currently, the default country is ...
0
votes
1answer
160 views

Add value to list of valid States

I added a new State for the Country 'Canada' in Setup -> State and Country/Territory Picklists. The State is 'BC' and StateCode is 'BC2'. See the image below for how it looks: Now that 'BC' is a ...
0
votes
0answers
364 views

Find state from Area Code

Our leads come in with just a phone number. I am looking to populate a custom field for the Lead State based off of that area code. I have already added a custom formula field to populate the time ...
0
votes
0answers
358 views

State and Country Picklist on Visualforce page

I have a page which displays input fields from a fieldset on Opportunity object. The fieldset contains Country and State picklists which render properly. The only problem is when the Opportunity ...
0
votes
0answers
613 views

Best Way to Populate Visualforce Picklists of Countries and States?

I am currently making a Visualforce Page for registration and I have both Country and State fields (both picklist) to populate. I have looked for resources online and I found out some possible ...
0
votes
0answers
1k views

Get state dependent picklist in apex when State and Country Picklists is enabled

I have enabled State and Country Picklists in my org. I am getting values in piclist. But the are not dependent. Like if i select country "India" i should get states only related to india. But it is ...