Skip to main content
Group

Custom Address Fields Program

This group is dedicated to helping our customers enable Custom Address Fields. Join the conversation to ask questions, get answers, stay updated, and share experiences. This group is maintained and moderated by Salesforce employees. The content received in this group falls under the official Forward-Looking Statement: http://investor.salesforce.com/about-us/investor/forward-looking-statements/default.aspx Please also see our official Salesforce Customer Community Terms of Use.

I have been using a custom address field for a while now without issue, but since we were upgraded to Spring 24' the Country picklist only shows options for "None" or "Germany". All other countries are missing. My standard address fields still work right, and no changes have been made to the "State and Country/Territory Picklists" in Setup.

 

Has anyone else had trouble like this since Spring 24'?

9 answers
  1. Feb 23, 2024, 10:53 PM

    I reached out to support and they recommended deactivating all countries, then reactivating. They applied the fix, so I didn't see it done, but it worked. The unfortunate part is that I also experienced the issue with state/province values, so they all needed to be deactivated and reactivated as well.

0/9000

We are encountering an issue with the display of custom address fields in the Lightning Web Components (LWC) record view page for our company custom object in Salesforce. Our custom object includes a custom address datatype field labeled "Company Address." However, when viewing records on the LWC record view page, the data from this custom address field is not being displayed.

 

Upon investigation, we found that the standard address field on the Contact object is functioning correctly when utilized in the record view LWC component. This discrepancy raises questions about the exact cause of the issue specifically related to custom address fields in our company custom object.

Issue with Custom Address Field Display in LWC Record View Page.

 

recordViewPage_Company.JPG

6 answers
0/9000
0/9000

New-ish solo Admin here. Our org is less than 2 years old and we are still tweaking functionality. There has been a request to add the "Google map addresses" for additional addresses that an Account may have. We have a Custom Object already called Additional Addresses that we are not using as originally intended. I'm thinking of turning on this functionality and using it on this custom object instead of the text boxes.

 

I've read the limitations documentation but as a relatively unexperienced salesforce person, I'm not sure there's anything in there that really dampers what we're doing. Can anyone speak to real life situations where this functionality has been turned on and it's caused an issue? I'm a bit gun shy but getting pressure from the higher ups. Thank you!

4 answers
  1. Apr 22, 2025, 9:03 PM

    @Matt Kelly

    I ended up enabling it in a Sandbox and then testing to see if our backup could "override" the setting which it could not. Refreshing the entire sandbox from prod was the only was to go back so to speak. The maps for the added additional addresses would not show in a list view so the users would have a lot of clicking to do to actually see the maps. In the end we decided it wasn't worth the hassle because we didn't really get any benefits from it. 

     

    We are making use of our custom Additional Address object. Essentially this just let's users make more than one "address" and they're related to the Account. This has been helpful for customers with multiple locations. No map but useful for generated forms and such.

0/9000

Hi team we are running into an error on a newly created flow that attempt to grab the Home Country from a Contact record and populate the Country field on a custom address on a case, and wondering if this is a known limitation.  The error message is: 

 

Error Occurred: This error occurred when the flow tried to create records: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST: Non-Salesforce Location (Country/Territory): bad value for restricted picklist field: Andorra. You can look up ExceptionCode values in the

SOAP API Developer Guide

 

Note we copied the actual Country name from the State and Country/Territory Picklist into the Contact Home Country field.   

 

Here's the detailed error I received in an email: 

 

Flow Error Details

 

 

Flow Details

 

 

Flow API Name:

GSS_Outreach_Create_HS_Case 

Type:

Autolaunched Flow 

Version:

13 

Status:

Active 

Org: SFDC Corporate Security (00DMN0000005GQj)

 

Flow Interview Details

 

 

Interview Label:

GSS_Outreach - Create H&S Case 2/5/2025 10:21 AM 

Interview GUID:

656c2a4c4e12ae42e923292545e194d36eca6f-108d 

Current User:

Scott Duhaime (005MN000000a18r) 

Start time:

2/5/2025 10:21 AM 

Duration:

0 seconds 

 

How the Interview Started

 

Scott Duhaime (005MN000000a18r) started the flow interview. 

API Version for Running the Flow: 62 

Some of this flow's variables were set when the interview started. 

$Record = GSS_Outreach__c (aAgMN00000003Vl0AI)

GET RECORDS:

GR01: Get Case H&S Record Type 

Find all RecordType records where: 

DeveloperName Equals Health_Safety 

AND SobjectType Equals Case 

Store the values of these fields in GR01_Get_Case_Record_Type: Id 

Result

 

Successfully found records.

GET RECORDS:

GR02: Get H&S Case Queue 

Find all Group records where: 

DeveloperName Equals Health_Safety_Support 

Store the values of these fields in GR02_Get_Case_Queue: Id 

Result

 

Successfully found records.

ASSIGNMENT:

AS01: Set H&S Case Fields 

{!varCase.Incident__c} Equals {!$

Record.GSS_Incident__r.Id

{!varCase.ContactId} Equals {!$

Record.GSS_Contact__r.Id

{!varCase.RecordTypeId} Equals {!GR01_Get_Case_Record_Type.Id} 

{!varCase.OwnerId} Equals {!GR02_Get_Case_Queue.Id} 

{!varCase.Category__c} Equals Traveler Assistance 

{!varCase.Sub_Category__c} Equals Disaster/Hardship Support 

{!varCase.Region__c} Equals {!$Record.GSS_Incident__r.Region__c} 

{!varCase.Origin} Equals Internal 

{!varCase.Location_Type__c} Equals Non-Salesforce Location 

{!varCase.Non_Salesforce_Location__City__s} Equals {!$Record.GSS_Contact__r.HomeAddress_City__c} 

{!varCase.Person_Type__c} Equals Employee 

{!varCase.Injured_Employee_Email__c} Equals {!$Record.GSS_Contact__r.Email} 

{!varCase.Non_Salesforce_Location__CountryCode__s} Equals {!$Record.GSS_Contact__r.HomeAddress_Country__c} 

{!varCase.Description} Equals {!Descriptionformula} 

Result

 

{!varCase.ContactId} = "003MN000008qRkKYAU" 

{!varCase.Description} = "CARE Assistance Offered<p>Offered</p>" 

{!varCase.Location_Type__c} = "Non-Salesforce Location" 

{!varCase.Region__c} = "ANZ" 

{!varCase.Non_Salesforce_Location__City__s} = "Andorra la Vella" 

{!varCase.RecordTypeId} = "0127y000005lfmPAAQ" 

{!varCase.OwnerId} = "00G50000003ReiMEAS" 

{!varCase.Person_Type__c} = "Employee" 

{!varCase.Incident__c} = "0nyMN00000037BRYAY" 

{!varCase.Non_Salesforce_Location__CountryCode__s} = "Andorra" 

{!varCase.Sub_Category__c} = "Disaster/Hardship Support" 

{!varCase.Injured_Employee_Email__c} = "null" 

{!varCase.Category__c} = "Traveler Assistance" 

{!varCase.Origin} = "Internal"

CREATE RECORDS:

CR01: Create H&S Case 

Create Case records using the values that are stored in {!varCase}. 

Variable Values

 

[Incident__c=0nyMN00000037BRYAY,ContactId=003MN000008qRkKYAU,RecordTypeId=0127y000005lfmPAAQ,OwnerId=00G50000003ReiMEAS,Category__c=Traveler Assistance,Sub_Category__c=Disaster/Hardship Support,Region__c=ANZ,Origin=Internal,Location_Type__c=Non-Salesforce Location,Non_Salesforce_Location__City__s=Andorra la Vella,Person_Type__c=Employee,Injured_Employee_Email__c=null,Non_Salesforce_Location__CountryCode__s=Andorra,Description=CARE Assistance Offered<p>Offered</p>] 

Result

 

Failed to create records.

Error Occurred: This error occurred when the flow tried to create records: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST: Non-Salesforce Location (Country/Territory): bad value for restricted picklist field: Andorra. You can look up ExceptionCode values in the SOAP API Developer Guide.

4 answers
  1. Feb 5, 2025, 8:23 PM

    Hi Scott, 

     

    The country field you're trying to map to, Non_Salesforce_Location__CountryCode__s, is a sub-field (as denoted by the __s) to a custom Address type field. Valid values are actually configured in Setup:

    Hi Scott, The country field you're trying to map to, Non_Salesforce_Location__CountryCode__s, is a sub-field (as denoted by the __s) to a custom Address type field.Valid values for this field are country codes,

    not full names. The Contact field you're mapping from appears to be a regular custom field, probably a picklist. 

     

    So the data won't map properly (Full Country Name vs Country Code). 

     

    You'll need to replace one of these fields so they're both the same type or map the Country codes in the flow (which would be a pain).

0/9000

I'm using below formula to return the details from leads to CSP Object using the URL link.

The formula works correctly for all fields and return values but no values on the addresses fields (Street / City / State / Postal Code / Country).

The Standard Address Field is used on Lead Object and the Custom Address Field is used on CSP object.

Is there something missing here related those addresses  Compound fields?? or it doesn't work on formulas?

 

/lightning/o/CSP__c/new?recordTypeId=012P1000001TBHFIA4&defaultFieldValues=

CSP_Official_Website_URL__c={!Lead.Website},

CSP_Commercial_Name__c={!Lead.Company},

CSP_Lead__c={!Lead.Id},

CSP_Phone_Fax_No__c={!Lead.MobilePhone},

CSP_Address_Custom__c.Street={!Lead.Street},

CSP_Address_Custom__c.City={!Lead.City},

CSP_Address_Custom__c.State={!Lead.State},

CSP_Address_Custom__c.PostalCode={!Lead.PostalCode},

CSP_Address_Custom__c.Country={!Lead.Country}

2 answers
0/9000

Can we create another line for Street address? I have a custom address "Home Address" and want to add another field Home Address ( Street Line) to include Apt, Suite, etc.

 

#Custom Fields #Sales Cloud #Salesforce

2 answers
  1. Feb 9, 2024, 12:57 AM

    The Street is already a multiline field. You can specify Apt on a separate line.The Street is already a multiline field. You can specify Apt on a separate line.

0/9000

I am using Primary (Standard Address) and Mailing(Custom Address) fields in Screen flow.

 

Standard Address Field is showing USA while Custom is Showing United States.

How to keep these values same for both custom and standard address field?

I have enabled Use custom address fields from User Interface and also State and Country/Territory Picklists

is configured.

Is there any configuration to keep these values same?

1 answer
0/9000

I tried to use lightning-input-address in lwc page and include the attribute "show-address-lookup". It works perfectly on the internal page but whenever it is exposed in the Experience site, the Google search address not showing.

2 answers
0/9000
1 answer
  1. Steven Trumble (Strum Consulting) Forum Ambassador
    Mar 6, 2024, 10:12 PM

    I don't see why that would be an issue. What happens when you try to create a custom address field?

0/9000